Ticket #854: page_2.patch
| File page_2.patch, 747 bytes (added by , 17 years ago) |
|---|
-
bp-core/bp-core-catchuri.php
308 308 } 309 309 add_filter( 'stylesheet', 'bp_core_force_buddypress_stylesheet', 1, 1 ); 310 310 311 function 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 323 add_action( 'send_headers', 'bp_home_blog_rewrite_rules' ); 324 311 325 ?> 326 No newline at end of file