[wp-trac] [WordPress Trac] #38134: Allow wp_no_robots to be hooked

WordPress Trac noreply at wordpress.org
Thu Sep 22 20:49:48 UTC 2016


#38134: Allow wp_no_robots to be hooked
-------------------------+-----------------------------
 Reporter:  tomdxw       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.6.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 It was decided in #22876 that

 {{{
 <meta name='robots' content='noindex,nofollow' />
 }}}

 would be replaced with


 {{{
 <meta name='robots' content='noindex,follow' />
 }}}

 But for those who would prefer `noindex,nofollow` there's no way to change
 it without a lot of hassle.

 A change as simple as this would make it very flexible:

 {{{
 function wp_no_robots() {
         echo apply_filters('wp_no_robots', "<meta name='robots'
 content='noindex,follow' />\n");
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38134>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list