WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22373


Ignore:
Timestamp:
11/06/12 21:27:51 (18 months ago)
Author:
SergeyBiryukov
Comment:

$wp_rewrite->flush_rules() call is only needed once after a new custom post type is added (as described in the Codex articles on flush_rules and WP_Rewrite), not on each page load.

There's a plugin to change the author base properly:
http://wordpress.org/extend/plugins/edit-author-slug/

For the 404 error troubleshooting, please try the support forums: ​http://wordpress.org/support/

Similar: #20370

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22373

    • Property Status changed from new to closed
    • Property Milestone changed from Awaiting Review to
    • Property Keywords needs-patch removed
    • Property Resolution changed from to invalid
    • Property Severity changed from critical to normal
  • Ticket #22373 – Description

    initial v1  
    11When i put this code in the file "function.php" 
    2  
    3 <code>add_filter('init', create_function('$a', 'global $wp_rewrite; $wp_rewrite->author_base = "user"; $wp_rewrite->flush_rules();'));</code> 
     2{{{ 
     3add_filter('init', create_function('$a', 'global $wp_rewrite; $wp_rewrite->author_base = "user"; $wp_rewrite->flush_rules();')); 
     4}}} 
    45 
    56The post_type "articulos" when I go to see, it show a error "Error 404" but if it can edit.