Skip to:
Content

BuddyPress.org

Changeset 6066


Ignore:
Timestamp:
06/08/2012 09:44:34 PM (14 years ago)
Author:
djpaul
Message:

Remove some more copypasta that came from/belongs in bbPress. See #4008.

  • The 'Root forum ID for groups' belongs to bbPress.
  • Don't serialise 'bp-deactivated-components'.
  • Remove 'Use WP Editor' option until/if we decide to integrate TinyMCE into any BP component.
Location:
trunk/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-settings.php

    r6026 r6066  
    4646    <input id="bp-disable-account-deletion" name="bp-disable-account-deletion" type="checkbox" value="1" <?php checked( !bp_disable_account_deletion( true ) ); ?> />
    4747    <label for="bp-disable-account-deletion"><?php _e( 'Allow registered members to delete their own accounts', 'buddypress' ); ?></label>
    48 
    49 <?php
    50 }
    51 
    52 /**
    53  * Use the WordPress editor setting field
    54  *
    55  * @since BuddyPress (r3586)
    56  *
    57  * @uses checked() To display the checked attribute
    58  */
    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>
    6448
    6549<?php
  • trunk/bp-core/bp-core-options.php

    r6037 r6066  
    2525        /** Components ********************************************************/
    2626
    27         'bp-deactivated-components'       => serialize( array() ),
     27        'bp-deactivated-components'       => array(),
    2828
    2929        /** bbPress ***********************************************************/
     
    6262        'bp-disable-blogforum-comments'   => true,
    6363
    64         // Use the WordPress editor when possible
    65         '_bp_use_wp_editor'               => false,
    66 
    6764        /** Groups ************************************************************/
    6865
     
    7168        // Restrict group creation to super admins
    7269        'bp_restrict_group_creation'      => false,
    73 
    74         // Root forum ID for groups
    75         '_bbp_group_forums_root_id'       => 0,
    7670
    7771        /** Akismet ***********************************************************/
     
    474468function bp_force_buddybar( $default = true ) {
    475469    return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );
    476 }
    477 
    478 /**
    479  * Use the WordPress editor if available
    480  *
    481  * @since BuddyPress (r3386)
    482  *
    483  * @param $default bool Optional. Default value true
    484  *
    485  * @uses bp_get_option() To get the WP editor option
    486  * @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 ) );
    490470}
    491471
Note: See TracChangeset for help on using the changeset viewer.