Skip to:
Content

BuddyPress.org

Ticket #854: page_2.patch

File page_2.patch, 747 bytes (added by GIGALinux, 17 years ago)
  • bp-core/bp-core-catchuri.php

     
    308308}
    309309add_filter( 'stylesheet', 'bp_core_force_buddypress_stylesheet', 1, 1 );
    310310
     311function bp_home_blog_rewrite_rules() {
     312        global $wp;
     313       
     314        $bp_uri = explode( "/", clean_url( $_SERVER['REQUEST_URI'] ) );
     315       
     316        if( BP_HOME_BLOG_SLUG == $bp_uri[1] ):
     317                $rule = "#/" . BP_HOME_BLOG_SLUG . '/page/?([0-9]{1,})/?$#';
     318                preg_match( $rule, $_SERVER['REQUEST_URI'], $array );
     319                $wp->query_vars["paged"] = $array[1];
     320        endif;
     321}
     322
     323add_action( 'send_headers', 'bp_home_blog_rewrite_rules' );
     324
    311325?>
     326 No newline at end of file