Make WordPress Core


Ignore:
Timestamp:
02/17/2021 10:49:13 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Robots: Rename wp_embed_no_robots to wp_robots_noindex_embeds().

This brings the naming in line with wp_robots_noindex_search().

Follow-up to [49992], [50370].

See #51511, #52457.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r50370 r50371  
    239239// Robots filters.
    240240add_filter( 'wp_robots', 'wp_robots_noindex' );
     241add_filter( 'wp_robots', 'wp_robots_noindex_embeds' );
    241242add_filter( 'wp_robots', 'wp_robots_noindex_search' );
    242243add_filter( 'wp_robots', 'wp_robots_max_image_preview_large' );
     
    612613add_action( 'embed_footer', 'wp_print_footer_scripts', 20 );
    613614
    614 add_filter( 'wp_robots', 'wp_embed_no_robots' );
    615615add_filter( 'excerpt_more', 'wp_embed_excerpt_more', 20 );
    616616add_filter( 'the_excerpt_embed', 'wptexturize' );
Note: See TracChangeset for help on using the changeset viewer.