[wp-meta] [Making WordPress.org] #1671: Restrict searches by site section

Making WordPress.org noreply at wordpress.org
Fri Apr 15 22:53:39 UTC 2016


#1671: Restrict searches by site section
-------------------------------------+--------------------------
 Reporter:  keesiemeijer             |       Owner:  coffee2code
     Type:  enhancement              |      Status:  accepted
 Priority:  normal                   |   Milestone:
Component:  developer.wordpress.org  |  Resolution:
 Keywords:  has-patch                |
-------------------------------------+--------------------------

Comment (by keesiemeijer):

 Good point. I agree it should come with the plugin.

 The difficulty, I think, will be to determine If you're on a handbook page
 or not. I've used a match to the `$_SERVER['REQUEST_URI']` for this. I
 think it's the only sane way because the `post_type` query var can be
 changed at any time (even on the front end). Right now it's a regex match
 with the post type names, but you could use the post type rewrite array to
 determine the correct match. Or maybe there is an even better way I don't
 know about :)

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/1671#comment:3>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list