Changeset 5223 for trunk/bp-core/admin/bp-core-admin.php
- Timestamp:
- 10/08/2011 06:46:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-admin.php
r5151 r5223 79 79 return false; 80 80 81 // "Switch to Admin Bar" is an optional option, so handle it here 82 if ( !empty( $_POST['bp-admin']['bp-force-buddybar'] ) ) { 83 unset( $_POST['bp-admin']['bp-force-buddybar'] ); 84 85 // Switch to the WP Admin Bar by removing the BuddyBar override 86 bp_delete_option( 'bp-force-buddybar' ); 87 } 88 81 89 // Settings form submitted, now save the settings. 82 90 foreach ( (array)$_POST['bp-admin'] as $key => $value ) … … 164 172 <?php endif; ?> 165 173 174 <?php if ( (bool) bp_get_option( 'bp-force-buddybar', false ) ) : ?> 175 <tr> 176 <th scope="row"><?php _e( 'Switch the site to the WordPress Admin Bar?', 'buddypress' ); ?></th> 177 <td> 178 <input type="checkbox" name="bp-admin[bp-force-buddybar]" value="1" id="bp-switch-to-admin-bar" /> 179 </td> 180 </tr> 181 <?php endif; ?> 182 166 183 <?php do_action( 'bp_core_admin_screen_fields' ) ?> 167 184
Note: See TracChangeset
for help on using the changeset viewer.