Changeset 49992 for trunk/src/wp-includes/default-filters.php
- Timestamp:
- 01/21/2021 01:35:16 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r49904 r49992 231 231 // Email filters. 232 232 add_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); 233 234 // Robots filters. 235 add_filter( 'wp_robots', 'wp_robots_noindex' ); 233 236 234 237 // Mark site as no longer fresh. … … 292 295 add_action( 'wp_head', 'locale_stylesheet' ); 293 296 add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 ); 294 add_action( 'wp_head', ' noindex', 1 );297 add_action( 'wp_head', 'wp_robots', 1 ); 295 298 add_action( 'wp_head', 'print_emoji_detection_script', 7 ); 296 299 add_action( 'wp_head', 'wp_print_styles', 8 ); … … 312 315 313 316 if ( isset( $_GET['replytocom'] ) ) { 314 add_ action( 'wp_head', 'wp_no_robots' );317 add_filter( 'wp_robots', 'wp_robots_no_robots' ); 315 318 } 316 319 317 320 // Login actions. 321 add_action( 'login_head', 'wp_robots', 1 ); 318 322 add_filter( 'login_head', 'wp_resource_hints', 8 ); 319 323 add_action( 'login_head', 'wp_print_head_scripts', 9 ); … … 586 590 add_action( 'embed_head', 'wp_print_head_scripts', 20 ); 587 591 add_action( 'embed_head', 'wp_print_styles', 20 ); 588 add_action( 'embed_head', 'wp_ no_robots' );592 add_action( 'embed_head', 'wp_robots' ); 589 593 add_action( 'embed_head', 'rel_canonical' ); 590 594 add_action( 'embed_head', 'locale_stylesheet', 30 ); … … 597 601 add_action( 'embed_footer', 'wp_print_footer_scripts', 20 ); 598 602 603 add_filter( 'wp_robots', 'wp_embed_no_robots' ); 599 604 add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 ); 600 605 add_filter( 'the_excerpt_embed', 'wptexturize' );
Note: See TracChangeset
for help on using the changeset viewer.