Yes, in the 1810s the instruction was to only baptize infants only if there was a reasonable expectation that they would be brought up in the Church. Prior to that the priests were indiscriminately baptizing the infants and children of any and everybody regardless of whether the parents were Catholic or not.
...which is what the Church teaches. Nothing special to see here, Baptism is a sacrament for the faithful, not to just be handed out like cookies at a bad Christmas party. If you aren’t going to be raising your children Catholic, the priest should deny to Baptize your child.