[wp-trac] [WordPress Trac] #20037: Introduce 'noindex' filter for robots meta tag

WordPress Trac noreply at wordpress.org
Sun Aug 13 13:27:39 UTC 2017


#20037: Introduce 'noindex' filter for robots meta tag
------------------------------------+------------------------------
 Reporter:  MartyThornley           |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Themes                  |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  template
------------------------------------+------------------------------
Changes (by Mte90):

 * keywords:  has-patch needs-refresh => has-patch dev-feedback


Comment:

 Looking at the code add that in `no_index` require that we pass a
 parameter to `wp_no_robots` but that method is used in many parts of the
 code.
 So for me the best solution is the filter inside the `wp_no_robots`
 method, after all is a method to alter the value of this tag values and in
 case there are no value not print at all.
 So I think that not created problems for back compatibility because the
 behaviour is right also on old systems if that filter will be used.

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


More information about the wp-trac mailing list