Question(s) about no_robots fix in the lockout.php template file
-
I noticed you fixed the core/templates/lockout/lockout.php file in the latest iTSec plugin 7.9.1 release for >= 5.7.x compatibility.
I have 2 questions about that fix:
1. The WordPress core _default_wp_die_handler() first adds:
add_filter( 'wp_robots', 'wp_robots_no_robots' );
… and then executes wp_robot().
Would it not make sense to add the wp_robots filter to the core/templates/lockout/lockout.php file too ? (From a consistency as well as a functional point of view).
2. I noticed you fixed the code with several seperate opening and closing PHP tags. Why not use a single opening and closing PHP tag? (Like in the WordPress core _default_wp_die_handler() callback). WordPress core coding standards ?
- The topic ‘Question(s) about no_robots fix in the lockout.php template file’ is closed to new replies.