Skip to:
Content

BuddyPress.org

Changeset 6768


Ignore:
Timestamp:
02/06/2013 08:52:12 PM (13 years ago)
Author:
boonebgorges
Message:

On new install screen, don't link Members and Activity directories if pretty permalinks aren't enabled

Fixes #4800

File:
1 edited

Legend:

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

    r6763 r6768  
    372372     */
    373373    public function about_screen() {
     374        global $wp_rewrite;
    374375
    375376        $is_new_install = ! empty( $_GET['is_new_install'] );
     377
     378        $pretty_permalinks_enabled = ! empty( $wp_rewrite->permalink_structure );
    376379
    377380        list( $display_version ) = explode( '-', bp_get_version() ); ?>
     
    402405                    <h4><?php _e( 'Your Default Setup', 'buddypress' ); ?></h4>
    403406                    <p><?php printf(
    404                         __( 'BuddyPress&#8217;s powerful features help your users connect and collaborate. To help get your community started, we&#8217;ve activated two of the most commonly used tools in BP: <strong>Extended Profiles</strong> and <strong>Activity Streams</strong>. See these components in action at the <a href="%1$s">Members</a> and <a href="%2$s">Activity</a> directories, and be sure to spend a few minutes <a href="%3$s">configuring user profiles</a>. Want to explore more of BP&#8217;s features? Visit the <a href="%4$s">Components panel</a>.', 'buddypress' ),
    405                         trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ),
    406                         trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() ),
     407                        __( 'BuddyPress&#8217;s powerful features help your users connect and collaborate. To help get your community started, we&#8217;ve activated two of the most commonly used tools in BP: <strong>Extended Profiles</strong> and <strong>Activity Streams</strong>. See these components in action at the %1$s and %2$s directories, and be sure to spend a few minutes <a href="%3$s">configuring user profiles</a>. Want to explore more of BP&#8217;s features? Visit the <a href="%4$s">Components panel</a>.', 'buddypress' ),
     408                        $pretty_permalinks_enabled ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) . '">' . __( 'Members', 'buddypress' ) . '</a>' : __( 'Members', 'buddypress' ),
     409                        $pretty_permalinks_enabled ? '<a href="' . trailingslashit( bp_get_root_domain() . '/' . bp_get_activity_root_slug() ) . '">' . __( 'Activity', 'buddypress' ) . '</a>' : __( 'Activity', 'buddypress' ),
    407410                        bp_get_admin_url( add_query_arg( array( 'page' => 'bp-profile-setup' ), 'users.php' ) ),
    408411                        bp_get_admin_url( add_query_arg( array( 'page' => 'bp-components' ), $this->settings_page ) )
Note: See TracChangeset for help on using the changeset viewer.