Skip to:
Content

BuddyPress.org

Changeset 3720 for trunk/bp-core.php


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

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.