Changeset 6422 for trunk/bp-core/bp-core-admin.php
- Timestamp:
- 10/15/2012 08:50:23 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r6343 r6422 361 361 */ 362 362 public function add_settings_link( $links, $file ) { 363 364 363 if ( buddypress()->basename == $file ) { 365 $url = bp_core_do_network_admin() ? network_admin_url( 'settings.php' ) : admin_url( 'options-general.php' ); 366 $settings_link = '<a href="' . add_query_arg( array( 'page' => 'bp-components' ), $url ) . '">' . __( 'Settings', 'buddypress' ) . '</a>'; 364 $page = 'bp-components'; 365 $text = __( 'Settings', 'buddypress' ); 366 $url = bp_core_do_network_admin() ? network_admin_url( 'settings.php' ) : admin_url( 'options-general.php' ); 367 368 // If we're in install mode then the link needs to show "Wizard" and link 369 // to the wizard. Otherwise we can show the BuddyPress settings page link. 370 if ( 'install' == bp_get_maintenance_mode() ) { 371 $page = 'bp-wizard'; 372 $text = __( 'Setup Wizard', 'buddypress' ); 373 $url = bp_core_do_network_admin() ? network_admin_url( 'admin.php?page=' . $page ) : admin_url( 'index.php?page=' . $page ); 374 } 375 376 $settings_link = '<a href="' . add_query_arg( array( 'page' => $page ), $url ) . '">' . $text . '</a>'; 377 367 378 array_unshift( $links, $settings_link ); 368 379 }
Note: See TracChangeset
for help on using the changeset viewer.