Ticket #2681: 2681.001.patch
File 2681.001.patch, 707 bytes (added by , 14 years ago) |
---|
-
buddypress/bp-core/bp-core-catchuri.php
282 282 bp_core_load_template( apply_filters( 'bp_core_template_display_profile', 'members/single/home' ) ); 283 283 } 284 284 285 /** 286 * bp_core_redirect_canonical() 287 * 288 * Properly redirects BuddyPress pages to their proper URL to prevent 289 * duplicate content errors. 290 * 291 * @see redirect_canonical() 292 */ 293 function bp_core_redirect_canonical() { 294 if ( bp_is_blog_page() ) 295 return; 296 297 add_action( 'get_header', 'redirect_canonical', 0 ); 298 } 299 add_action( 'bp_loaded', 'bp_core_redirect_canonical' ); 300 285 301 ?> 302 No newline at end of file