[wp-trac] [WordPress Trac] #15256: ?cat=## permalinks do not redirect when category is a parent

WordPress Trac noreply at wordpress.org
Mon Nov 11 18:35:22 UTC 2013


#15256: ?cat=## permalinks do not redirect when category is a parent
-------------------------------------------------+-------------------------
 Reporter:  froman118                            |       Owner:
     Type:  defect (bug)                         |  wonderboymusic
 Priority:  high                                 |      Status:  closed
Component:  Canonical                            |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  has-patch needs-testing needs-unit-  |     Version:  3.0.1
  tests early                                    |  Resolution:  fixed
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"26090"]:
 {{{
 #!CommitTicketReference repository="" revision="26090"
 Fix canonical redirection of `cat` as described in #15256 by rolling the
 `cat` query var into `tax_query`, instead of `category__in` /
 `category__not_in`. Top-level categories were only redirecting properly if
 they had no children.

 All unit tests pass. Tests marked for #15256 are no longer skipped.

 Fixes #15256.
 Props dd32.
 }}}

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


More information about the wp-trac mailing list