Changeset 49992 for trunk/src/wp-includes/functions.php
- Timestamp:
- 01/21/2021 01:35:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r49941 r49992 1641 1641 * @since 2.1.0 1642 1642 * @since 5.3.0 Remove the "Disallow: /" output if search engine visiblity is 1643 * discouraged in favor of robots meta HTML tag in wp_no_robots(). 1643 * discouraged in favor of robots meta HTML tag via wp_robots_no_robots() 1644 * filter callback. 1644 1645 */ 1645 1646 function do_robots() { … … 3492 3493 <meta name="viewport" content="width=device-width"> 3493 3494 <?php 3494 if ( function_exists( 'wp_no_robots' ) ) { 3495 wp_no_robots(); 3495 if ( function_exists( 'wp_robots' ) && function_exists( 'wp_robots_no_robots' ) && function_exists( 'add_filter' ) ) { 3496 add_filter( 'wp_robots', 'wp_robots_no_robots' ); 3497 wp_robots(); 3496 3498 } 3497 3499 ?>
Note: See TracChangeset
for help on using the changeset viewer.