Changeset 5575
- Timestamp:
- 12/20/2011 03:43:16 PM (13 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-functions.php
r5574 r5575 72 72 73 73 remove_submenu_page( $page, 'bb-forums-setup' ); 74 remove_submenu_page( $page, 'bp- slugs');74 remove_submenu_page( $page, 'bp-page-settings' ); 75 75 remove_submenu_page( $page, 'bp-settings' ); 76 76 } … … 286 286 287 287 if ( !empty( $orphaned_components ) ) { 288 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp- slugs' ), 'admin.php' ) );288 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ); 289 289 $notice = sprintf( __( 'The following active BuddyPress Components do not have associated WordPress Pages: %2$s. <a href="%1$s" class="button-secondary">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $orphaned_components ) . '</strong>' ); 290 290 … … 311 311 // If there are duplicates, post a message about them 312 312 if ( !empty( $dupe_names ) ) { 313 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp- slugs' ), 'admin.php' ) );313 $admin_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ); 314 314 $notice = sprintf( __( 'Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: %2$s. <a href="%1$s" class="button-secondary">Repair</a>', 'buddypress' ), $admin_url, '<strong>' . implode( '</strong>, <strong>', $dupe_names ) . '</strong>' ); 315 315 … … 352 352 /* Settings Icon */ 353 353 ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a img, 354 ul#adminmenu li.toplevel_page_bp- settings .wp-menu-image a img {354 ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a img { 355 355 display: none; 356 356 } 357 357 358 358 ul#adminmenu li.toplevel_page_bp-components .wp-menu-image a, 359 ul#adminmenu li.toplevel_page_bp- settings .wp-menu-image a {359 ul#adminmenu li.toplevel_page_bp-general-settings .wp-menu-image a { 360 360 background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; 361 361 } 362 362 363 363 ul#adminmenu li.toplevel_page_bp-components:hover .wp-menu-image a, 364 ul#adminmenu li.toplevel_page_bp- settings:hover .wp-menu-image a,364 ul#adminmenu li.toplevel_page_bp-general-settings:hover .wp-menu-image a, 365 365 ul#adminmenu li.toplevel_page_bp-components.wp-has-current-submenu .wp-menu-image a, 366 ul#adminmenu li.toplevel_page_bp- settings.wp-has-current-submenu .wp-menu-image a {366 ul#adminmenu li.toplevel_page_bp-general-settings.wp-has-current-submenu .wp-menu-image a { 367 367 background-position: -1px 0; 368 368 } … … 417 417 ), 418 418 '1' => array( 419 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp- slugs' ), 'admin.php' ) ),419 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings' ), 'admin.php' ) ), 420 420 'name' => __( 'Permalinks', 'buddypress' ) 421 421 ), … … 429 429 if ( bp_is_active( 'forums' ) ) { 430 430 $tabs['3'] = array( 431 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'b p-forums'), 'admin.php' ) ),431 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bb-forums-setup' ), 'admin.php' ) ), 432 432 'name' => __( 'Forums', 'buddypress' ) 433 433 ); -
trunk/bp-core/admin/bp-core-slugs.php
r5524 r5575 207 207 } 208 208 209 $base_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp- slugs', 'updated' => 'true' ), 'admin.php' ) );209 $base_url = bp_get_admin_url( add_query_arg( array( 'page' => 'bp-page-settings', 'updated' => 'true' ), 'admin.php' ) ); 210 210 211 211 wp_redirect( $base_url ); -
trunk/bp-core/admin/bp-core-update.php
r5524 r5575 193 193 194 194 $step_count = count( $this->steps ) - 1; 195 $wiz_or_set = $this->current_step >= $step_count ? 'bp- general-config' : 'bp-wizard';195 $wiz_or_set = $this->current_step >= $step_count ? 'bp-components' : 'bp-wizard'; 196 196 $form_action = bp_core_update_do_network_admin() ? network_admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) ) : admin_url( add_query_arg( array( 'page' => $wiz_or_set ), 'admin.php' ) ); 197 197 ?> … … 1161 1161 1162 1162 // Redirect to the BuddyPress dashboard 1163 $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp- general-config' ), network_admin_url( 'settings.php' ) ) : add_query_arg( array( 'page' => 'bp-general-config' ), admin_url( 'options-general.php' ) );1163 $redirect = bp_core_update_do_network_admin() ? add_query_arg( array( 'page' => 'bp-components' ), network_admin_url( 'settings.php' ) ) : add_query_arg( array( 'page' => 'bp-components' ), admin_url( 'options-general.php' ) ); 1164 1164 1165 1165 wp_redirect( $redirect ); -
trunk/bp-core/bp-core-admin.php
r5557 r5575 216 216 __( 'BuddyPress Pages', 'buddypress' ), 217 217 'manage_options', 218 'bp- slugs',218 'bp-page-settings', 219 219 'bp_core_admin_slugs_settings' 220 220 );
Note: See TracChangeset
for help on using the changeset viewer.