Skip to:
Content

BuddyPress.org

Ticket #8220: 8220.patch

File 8220.patch, 2.3 KB (added by kashifgabol, 4 years ago)
  • src/bp-core/admin/bp-core-admin-slugs.php

     
    110110 */
    111111function bp_core_admin_slugs_options() {
    112112
    113         // Get the existing WP pages
     113        // Get the existing WP pages.
    114114        $existing_pages = bp_core_get_directory_page_ids();
    115115
    116116        // Set up an array of components (along with component names) that have directory pages.
  • src/bp-core/bp-core-cache.php

     
    66 * actions throughout BuddyPress.
    77 *
    88 * @package BuddyPress
    9  * @supackage Cache
     9 * @subpackage Cache
    1010 * @since 1.5.0
    1111 */
    1212
     
    8080                return;
    8181        }
    8282
    83         // Bail if not on the root blog
     83        // Bail if not on the root blog.
    8484        if ( ! bp_is_root_blog() ) {
    8585                return;
    8686        }
     
    8787
    8888        $page_ids = bp_core_get_directory_page_ids( 'all' );
    8989
    90         // Bail if post ID is not a directory page
     90        // Bail if post ID is not a directory page.
    9191        if ( ! in_array( $post_id, $page_ids ) ) {
    9292                return;
    9393        }
  • src/bp-core/bp-core-catchuri.php

     
    2222 *
    2323 * The URIs are broken down as follows:
    2424 *   - 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] / ...
    2626 *
    2727 * Example:
    2828 *    - http://example.com/members/andy/profile/edit/group/5/
     
    9797                        foreach( $chunks as $key => $chunk ) {
    9898                                $bkey = array_search( $chunk, $bp_uri );
    9999
    100                                 // ...and unset offending keys
     100                                // ...and unset offending keys.
    101101                                if ( false !== $bkey ) {
    102102                                        unset( $bp_uri[$bkey] );
    103103                                }