Skip to:
Content

BuddyPress.org

Changeset 3720


Ignore:
Timestamp:
01/16/2011 12:17:36 AM (14 years ago)
Author:
djpaul
Message:

Add admin menus with a higher priority so custom post types with 'show_in_menu' don't replace the location of the top level link

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r3713 r3720  
    170170
    171171    // The default text for the members directory search box
    172         $bp->default_search_strings[$bp->members->slug] = __( 'Search Members...', 'buddypress' ); 
     172        $bp->default_search_strings[$bp->members->slug] = __( 'Search Members...', 'buddypress' );
    173173
    174174    do_action( 'bp_core_setup_globals' );
     
    252252    if ( empty( $page_ids ) )
    253253        return false;
    254        
     254
    255255    $posts_table_name = is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ? $wpdb->get_blog_prefix( BP_ROOT_BLOG ) . 'posts' : $wpdb->posts;
    256256
     
    331331    add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' );
    332332}
    333 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu' );
     333add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_add_admin_menu', 9 );
    334334
    335335/**
     
    17651765        if ( username_exists( $username ) && ( !defined( 'BP_ENABLE_USER_COMPATIBILITY_MODE' ) || !BP_ENABLE_USER_COMPATIBILITY_MODE ) )
    17661766                return $username;
    1767                
     1767
    17681768    return str_replace( ' ', '-', $username );
    17691769}
  • trunk/bp-core/admin/bp-core-update.php

    r3716 r3720  
    545545                    </td>
    546546                </tr>
    547                
     547
    548548            <?php endif; ?>
    549549
     
    10911091        delete_site_option( 'bp-xprofile-db-version' );
    10921092    }
    1093    
     1093
    10941094    /**
    10951095     * Reset the cookie so the install script starts over
     
    11061106}
    11071107add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu', 'bp_core_setup_wizard_init' );
    1108    
     1108
    11091109
    11101110function bp_core_install( $disabled = false ) {
     
    12821282    add_action( "admin_print_styles-$hook", 'bp_core_add_admin_menu_styles' );
    12831283}
    1284 add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu',  'bp_core_add_admin_menu' );
     1284add_action( is_multisite() ? 'network_admin_menu' : 'admin_menu',  'bp_core_add_admin_menu', 9 );
    12851285
    12861286function bp_core_add_admin_menu_styles() {
Note: See TracChangeset for help on using the changeset viewer.