[wp-trac] [WordPress Trac] #26627: Regression: get_queried_object no longer working with pre_get_posts and pretty permalinks

WordPress Trac noreply at wordpress.org
Sat Dec 14 19:37:33 UTC 2013


#26627: Regression: get_queried_object no longer working with pre_get_posts and
pretty permalinks
-------------------------------------+------------------------------
 Reporter:  Otto42                   |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Query                    |     Version:  3.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by jeremyfelt):

 * keywords:   => has-patch needs-testing


Comment:

 [attachment:26627.diff] checks for a valid term after using `cat` and then
 makes an attempt with `get_term_by()` using `category_name` if it is not
 found.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26627#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list