Ticket #4397: 4397.01.patch
File 4397.01.patch, 1.6 KB (added by , 12 years ago) |
---|
-
bp-core/admin/bp-core-functions.php
function bp_core_admin_tabs( $active_tab = '' ) { 396 396 do_action( 'bp_admin_tabs' ); 397 397 } 398 398 399 /** 400 * Add the confirmation inline javascript in the WP admin dashboard. 401 * 402 * Only add it if we're not in BP maintenance mode. 403 * 404 * @since BuddyPress (1.6.1) 405 * @uses bp_get_maintenance_mode() To see if we're in BP maintenance mode. 406 * @uses bp_core_confirmation_js() To output our inline JS. 407 */ 408 function bp_core_admin_add_confirm_js() { 409 if ( ! bp_get_maintenance_mode() ) 410 bp_core_confirmation_js(); 411 } 412 add_action( 'admin_head', 'bp_core_admin_add_confirm_js' ); 413 399 414 ?> -
bp-forums/bp-forums-admin.php
function bp_forums_bbpress_admin() { 60 60 61 61 // Delete the bb-config.php location option 62 62 bp_delete_option( 'bb-config-location' ); 63 64 // Now delete the bb-config.php file 65 @unlink( ABSPATH . 'bb-config.php' ); 66 67 // show the updated wizard 63 68 bp_forums_bbpress_install_wizard(); 64 69 65 70 else : ?> … … function bp_forums_bbpress_admin() { 79 84 </ul> 80 85 81 86 <div> 82 <a class="button button-primary " href="<?php echo $action ?>"><?php _e( 'Uninstall Group Forums', 'buddypress' ) ?></a> 87 <a class="button button-primary confirm" href="<?php echo $action ?>"><?php _e( 'Uninstall Group Forums', 'buddypress' ) ?></a> 83 88 </div> 84 89 </div> 85 90