Ticket #2710: 2710-1.patch
File 2710-1.patch, 1.4 KB (added by , 14 years ago) |
---|
-
bp-core/bp-core-catchuri.php
132 132 133 133 unset( $uri_chunks ); 134 134 } 135 135 136 // Search doesn't have an associated page, so we check is separately 137 if ( in_array( BP_SEARCH_SLUG, $bp_uri ) ) 138 $matches[] = 1; 139 136 140 // This is not a BuddyPress page, so just return. 137 141 if ( !isset( $matches ) ) 138 142 return false; -
bp-core.php
22 22 if ( !defined( 'CUSTOM_USER_META_TABLE' ) ) 23 23 define( 'CUSTOM_USER_META_TABLE', $wpdb->base_prefix . 'usermeta' ); 24 24 25 // The search slug has to be defined nice and early because of the way search requests are loaded 26 if ( !defined( 'BP_SEARCH_SLUG' ) ) 27 define( 'BP_SEARCH_SLUG', 'search' ); 28 25 29 /* Load the files containing functions that we globally will need. */ 26 30 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-catchuri.php' ); 27 31 require ( BP_PLUGIN_DIR . '/bp-core/bp-core-classes.php' ); … … 202 206 203 207 if ( !defined( 'BP_ACTIVATION_SLUG' ) ) 204 208 define( 'BP_ACTIVATION_SLUG', $bp->pages->activate->slug ); 205 206 if ( !defined( 'BP_SEARCH_SLUG' ) )207 define( 'BP_SEARCH_SLUG', 'search' );208 209 } 209 210 add_action( 'bp_setup_globals', 'bp_core_define_slugs' ); 210 211