[wp-trac] [WordPress Trac] #12507: Make /page/ filterable

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 3 23:29:50 UTC 2010


#12507: Make /page/ filterable
-------------------------+--------------------------------------------------
 Reporter:  scribu       |       Owner:  ryan                   
     Type:  enhancement  |      Status:  new                    
 Priority:  normal       |   Milestone:  Future Release         
Component:  Permalinks   |     Version:                         
 Severity:  normal       |    Keywords:  has-patch needs-testing
-------------------------+--------------------------------------------------

Comment(by filosofo):

 {{{
 class WP_Structure {

    function get_pagination_base() {}
    function get_post_structure() {}
    function get_category_structure() {}

    ...

    function init() {
       $this->rewrite = new WP_Rewrite;
       $this->rewrite->page_base = $this->get_pagination_base();

    }
 }

 $wp_structure_class = apply_filters('wp_structure_class', 'WP_Structure');
 $wp_structure = new $wp_structure_class;
 }}}

 ''Everything''--links, rewrite rules, etc.--all able to be changed easily
 in one place by extending WP_Structure.

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


More information about the wp-trac mailing list