[wp-trac] [WordPress Trac] #51511: Introduce Robots API and Media Search Engine Visibility setting

WordPress Trac noreply at wordpress.org
Wed Jan 20 19:42:31 UTC 2021


#51511: Introduce Robots API and Media Search Engine Visibility setting
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  feature request                      |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.7
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note commit                                    |
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * keywords:  has-patch has-unit-tests needs-copy-review needs-dev-note =>
     has-patch has-unit-tests needs-dev-note commit


Comment:

 @helen @francina Following up on the previous comments, it looks like it
 would be most beneficial to WordPress users to not include any UI to opt
 out of allowing search engines to use large image previews, for the
 following reasons:

 * As long as a site should be surfaced in search results (via the existing
 checkbox), allowing for large image previews results in a better user
 experience.
 * The only reason to opt out of large image previews by search engines
 would be for sites with special copyright requirements, e.g. sites that
 sell these images.
 * In other words, any UI introduced for this would only benefit a fraction
 of WordPress sites, which is certainly lower (likely much lower) than 20%.
 * For those sites that would like to opt out of large image previews in
 search engines, a filter is available to do so (see below).
 * The [https://yoast.com/robots-meta-changes-for-google/ Yoast SEO plugin,
 which is used by millions of sites, is following a similar approach],
 opting in to large image previews by default and allowing to opt out with
 a filter.

 A one line-plugin could be used for sites that would like to opt out of
 large image previews for search engines:

 {{{#!php
 <?php
 remove_filter( 'wp_robots', 'wp_robots_max_image_preview_large' );
 }}}

 I've updated [https://github.com/WordPress/wordpress-develop/pull/595 the
 PR] accordingly to remove the option and UI around it.

 I've also refreshed [https://github.com/WordPress/wordpress-
 develop/pull/702 the Robots API-only version of it], which has been
 reviewed multiple times and is good to go. I'll commit that one later
 today so that we can solely focus on the `max-image-preview:large` part
 separately after that.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51511#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list