Changeset 4234
- Timestamp:
- 10/01/2012 10:26:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bbp-admin/bbp-settings.php
r4128 r4234 79 79 // Edit lock setting 80 80 '_bbp_edit_lock' => array( 81 'title' => __( ' Lock postediting after', 'bbpress' ),81 'title' => __( 'Disallow editing after', 'bbpress' ), 82 82 'callback' => 'bbp_admin_setting_callback_editlock', 83 83 'sanitize_callback' => 'intval', … … 87 87 // Throttle setting 88 88 '_bbp_throttle_time' => array( 89 'title' => __( 'Throttle time', 'bbpress' ),89 'title' => __( 'Throttle posting every', 'bbpress' ), 90 90 'callback' => 'bbp_admin_setting_callback_throttle', 91 91 'sanitize_callback' => 'intval', … … 119 119 // Allow topic tags 120 120 '_bbp_allow_topic_tags' => array( 121 'title' => __( 'Topic Tags', 'bbpress' ),121 'title' => __( 'Topic tags', 'bbpress' ), 122 122 'callback' => 'bbp_admin_setting_callback_topic_tags', 123 123 'sanitize_callback' => 'intval', … … 127 127 // Allow anonymous posting setting 128 128 '_bbp_allow_anonymous' => array( 129 'title' => __( 'Anonymous Posting', 'bbpress' ),129 'title' => __( 'Anonymous posting', 'bbpress' ), 130 130 'callback' => 'bbp_admin_setting_callback_anonymous', 131 131 'sanitize_callback' => 'intval', … … 135 135 // Allow global access (on multisite) 136 136 '_bbp_allow_global_access' => array( 137 'title' => __( ' Global Access', 'bbpress' ),137 'title' => __( 'Default user role', 'bbpress' ), 138 138 'callback' => 'bbp_admin_setting_callback_global_access', 139 139 'sanitize_callback' => 'intval', … … 143 143 // Allow fancy editor setting 144 144 '_bbp_use_wp_editor' => array( 145 'title' => __( 'Fancy Editor', 'bbpress' ),145 'title' => __( 'Fancy editor', 'bbpress' ), 146 146 'callback' => 'bbp_admin_setting_callback_use_wp_editor', 147 147 'args' => array(), … … 151 151 // Allow auto embedding setting 152 152 '_bbp_use_autoembed' => array( 153 'title' => __( 'Auto-embed Links', 'bbpress' ),153 'title' => __( 'Auto-embed links', 'bbpress' ), 154 154 'callback' => 'bbp_admin_setting_callback_use_autoembed', 155 155 'sanitize_callback' => 'intval', … … 485 485 */ 486 486 function bbp_admin_setting_callback_global_access() { 487 ?> 487 global $wp_roles; 488 489 // Load roles if not set 490 if ( ! isset( $wp_roles ) ) 491 $wp_roles = new WP_Roles(); 492 493 $default_role = get_option( 'default_role', 'subscriber' ); 494 $default_role = $wp_roles->role_names[ $default_role ]; 495 $default_role = translate_user_role( $default_role ); ?> 488 496 489 497 <input id="_bbp_allow_global_access" name="_bbp_allow_global_access" type="checkbox" id="_bbp_allow_global_access" value="1" <?php checked( bbp_allow_global_access( false ) ); ?> /> 490 <label for="_bbp_allow_global_access"><?php _e( 'Allow all registered users to create topics and replies', 'bbpress'); ?></label>498 <label for="_bbp_allow_global_access"><?php printf( __( 'Automatically assign "%s" role to new, registered visitors.', 'bbpress' ), $default_role ); ?></label> 491 499 492 500 <?php
Note: See TracChangeset
for help on using the changeset viewer.