Changeset 8568 for trunk/src/bp-core/admin/bp-core-settings.php
- Timestamp:
- 07/09/2014 04:43:00 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/admin/bp-core-settings.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-settings.php
r7965 r8568 50 50 } 51 51 52 /**53 * If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over54 * to the WP Toolbar.55 *56 * @since BuddyPress (1.6)57 */58 function bp_admin_setting_callback_force_buddybar() {59 ?>60 61 <input id="_bp_force_buddybar" name="_bp_force_buddybar" type="checkbox" value="1" <?php checked( ! bp_force_buddybar( true ) ); ?> />62 <label for="_bp_force_buddybar"><?php _e( 'Switch to WordPress Toolbar', 'buddypress' ); ?></label>63 64 <?php65 }66 67 52 /** Activity *******************************************************************/ 68 53 … … 116 101 117 102 <?php 118 }119 120 /**121 * Sanitization for _bp_force_buddyvar122 *123 * If upgraded to 1.6 and you chose to keep the BuddyBar, a checkbox asks if you want to switch to124 * the WP Toolbar. The option we store is 1 if the BuddyBar is forced on, so we use this function125 * to flip the boolean before saving the intval.126 *127 * @since BuddyPress (1.6)128 * @access Private129 */130 function bp_admin_sanitize_callback_force_buddybar( $value = false ) {131 return $value ? 0 : 1;132 103 } 133 104
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)