[wp-trac] [WordPress Trac] #36188: After WordPress installation, the default category archive page is showing a 404 page

WordPress Trac noreply at wordpress.org
Thu Dec 15 05:12:49 UTC 2016


#36188: After WordPress installation, the default category archive page is showing
a 404 page
-----------------------------------+-----------------------------
 Reporter:  strategio              |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Rewrite Rules          |     Version:  4.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+-----------------------------

Comment (by dlh):

 On second thought, firing `init` doesn't seem to fix the bug in the
 example of taxonomies in the default theme.

 But, at least for the taxonomies that are available during install, I
 wonder whether adding a loop along the lines of the one below would
 address the bug without the overhead of `init`:

 {{{#!php
 wp_install_maybe_enable_pretty_permalinks();

 foreach ( get_taxonomies() as $taxonomy ) {
         get_taxonomy( $taxonomy )->add_rewrite_rules();
 }

 flush_rewrite_rules();
 }}}

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


More information about the wp-trac mailing list