• Resolved flberger

    (@flberger)


    The issue brought up in “Bugs found: missing CR and wrong replacement of &” still has not been fixed: WP Robots.txt still breaks other plugins adding to the virtual robots.txt, as any trailing newline is being stripped, resulting in an unwanted joining of lines, as shown in the original post.

    A fix would be to add a trailing newline in inc/core-functionality.php :

    function robtxt_filter_robots( $output, $public ) {
            $content = get_option( 'robtxt_content' );
            if ( $content ) {
                    $output = esc_attr( wp_strip_all_tags( $content ) ) . PHP_EOL;
            }
    
            return $output;
    }

    It would be most helpful to get this integrated. Thanks for considering.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author George Pattichis

    (@pattihis)

    Hi @flberger ,

    Thank you for bringing this up. I have just released an update with your suggestion.

    Please let me know if you notice any other issues or improvements.

    Regards,
    George

    Thread Starter flberger

    (@flberger)

    That was quick. Thanks for the fix, and an immensely useful plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CR / line break still missing’ is closed to new replies.