Ticket #8220: 8220.patch
File 8220.patch, 2.3 KB (added by , 5 years ago) |
---|
-
src/bp-core/admin/bp-core-admin-slugs.php
110 110 */ 111 111 function bp_core_admin_slugs_options() { 112 112 113 // Get the existing WP pages 113 // Get the existing WP pages. 114 114 $existing_pages = bp_core_get_directory_page_ids(); 115 115 116 116 // Set up an array of components (along with component names) that have directory pages. -
src/bp-core/bp-core-cache.php
6 6 * actions throughout BuddyPress. 7 7 * 8 8 * @package BuddyPress 9 * @su package Cache9 * @subpackage Cache 10 10 * @since 1.5.0 11 11 */ 12 12 … … 80 80 return; 81 81 } 82 82 83 // Bail if not on the root blog 83 // Bail if not on the root blog. 84 84 if ( ! bp_is_root_blog() ) { 85 85 return; 86 86 } … … 87 87 88 88 $page_ids = bp_core_get_directory_page_ids( 'all' ); 89 89 90 // Bail if post ID is not a directory page 90 // Bail if post ID is not a directory page. 91 91 if ( ! in_array( $post_id, $page_ids ) ) { 92 92 return; 93 93 } -
src/bp-core/bp-core-catchuri.php
22 22 * 23 23 * The URIs are broken down as follows: 24 24 * - http:// example.com / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ... 25 * - OUTSIDE ROOT: http:// example.com / sites / buddypress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ...25 * - OUTSIDE ROOT: http:// example.com / sites / BuddyPress / members / andy / [current_component] / [current_action] / [action_variables] / [action_variables] / ... 26 26 * 27 27 * Example: 28 28 * - http://example.com/members/andy/profile/edit/group/5/ … … 97 97 foreach( $chunks as $key => $chunk ) { 98 98 $bkey = array_search( $chunk, $bp_uri ); 99 99 100 // ...and unset offending keys 100 // ...and unset offending keys. 101 101 if ( false !== $bkey ) { 102 102 unset( $bp_uri[$bkey] ); 103 103 }