Skip to:
Content

BuddyPress.org

Changeset 4650


Ignore:
Timestamp:
07/12/2011 02:58:25 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Audit the usage of $bp->members->slug and $bp->members->root_slug. See #3325.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r4649 r4650  
    478478        <a href="#"><?php _e( 'Visit', 'buddypress' ) ?></a>
    479479        <ul class="random-list">
    480             <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . $bp->members->root_slug ) . '?random-member' ?>" rel="nofollow"><?php _e( 'Random Member', 'buddypress' ) ?></a></li>
     480            <li><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '?random-member' ?>" rel="nofollow"><?php _e( 'Random Member', 'buddypress' ) ?></a></li>
    481481
    482482            <?php if ( bp_is_active( 'groups' ) ) : ?>
  • trunk/bp-core/bp-core-filters.php

    r4602 r4650  
    291291    } elseif ( bp_is_directory() ) {
    292292        if ( !bp_current_component() )
    293             $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( $bp->members->slug ) );
     293            $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( bp_members_slug() ) );
    294294        else
    295295            $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug() );
     
    315315}
    316316add_filter( 'wp_title', 'bp_modify_page_title', 10, 3 );
    317 add_filter( 'bp_modify_page_title', 'wptexturize'   );
    318 add_filter( 'bp_modify_page_title', 'convert_chars' );
    319 add_filter( 'bp_modify_page_title', 'esc_html'      );
     317add_filter( 'bp_modify_page_title', 'wptexturize'     );
     318add_filter( 'bp_modify_page_title', 'convert_chars'   );
     319add_filter( 'bp_modify_page_title', 'esc_html'        );
     320
    320321?>
  • trunk/bp-core/bp-core-functions.php

    r4649 r4650  
    842842            case 'members':
    843843            default:
    844                 $slug = $bp->members->root_slug;
     844                $slug = bp_get_members_root_slug();
    845845                break;
    846846        }
  • trunk/bp-members/bp-members-functions.php

    r4629 r4650  
    110110        // If we are using a members slug, include it.
    111111        if ( !defined( 'BP_ENABLE_ROOT_PROFILES' ) )
    112             $domain = bp_get_root_domain() . '/' . $bp->members->root_slug . '/' . $username;
     112            $domain = bp_get_root_domain() . '/' . bp_get_members_root_slug() . '/' . $username;
    113113        else
    114114            $domain = bp_get_root_domain() . '/' . $username;
Note: See TracChangeset for help on using the changeset viewer.