Changeset 6066
- Timestamp:
- 06/08/2012 09:44:34 PM (14 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 2 edited
-
admin/bp-core-settings.php (modified) (1 diff)
-
bp-core-options.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-settings.php
r6026 r6066 46 46 <input id="bp-disable-account-deletion" name="bp-disable-account-deletion" type="checkbox" value="1" <?php checked( !bp_disable_account_deletion( true ) ); ?> /> 47 47 <label for="bp-disable-account-deletion"><?php _e( 'Allow registered members to delete their own accounts', 'buddypress' ); ?></label> 48 49 <?php50 }51 52 /**53 * Use the WordPress editor setting field54 *55 * @since BuddyPress (r3586)56 *57 * @uses checked() To display the checked attribute58 */59 function bp_admin_setting_callback_use_wp_editor() {60 ?>61 62 <input id="_bp_use_wp_editor" name="_bp_use_wp_editor" type="checkbox" id="_bp_use_wp_editor" value="1" <?php checked( bp_use_wp_editor( true ) ); ?> />63 <label for="_bp_use_wp_editor"><?php _e( 'Use the fancy WordPress editor to create and edit topics and replies', 'buddypress' ); ?></label>64 48 65 49 <?php -
trunk/bp-core/bp-core-options.php
r6037 r6066 25 25 /** Components ********************************************************/ 26 26 27 'bp-deactivated-components' => serialize( array()),27 'bp-deactivated-components' => array(), 28 28 29 29 /** bbPress ***********************************************************/ … … 62 62 'bp-disable-blogforum-comments' => true, 63 63 64 // Use the WordPress editor when possible65 '_bp_use_wp_editor' => false,66 67 64 /** Groups ************************************************************/ 68 65 … … 71 68 // Restrict group creation to super admins 72 69 'bp_restrict_group_creation' => false, 73 74 // Root forum ID for groups75 '_bbp_group_forums_root_id' => 0,76 70 77 71 /** Akismet ***********************************************************/ … … 474 468 function bp_force_buddybar( $default = true ) { 475 469 return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) ); 476 }477 478 /**479 * Use the WordPress editor if available480 *481 * @since BuddyPress (r3386)482 *483 * @param $default bool Optional. Default value true484 *485 * @uses bp_get_option() To get the WP editor option486 * @return bool Use WP editor?487 */488 function bp_use_wp_editor( $default = true ) {489 return (bool) apply_filters( 'bp_use_wp_editor', (bool) bp_get_option( '_bp_use_wp_editor', $default ) );490 470 } 491 471
Note: See TracChangeset
for help on using the changeset viewer.