Changeset 4971 for trunk/includes/admin/settings.php
- Timestamp:
- 05/28/2013 11:12:36 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/admin/settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/admin/settings.php
r4969 r4971 85 85 /** User Section ******************************************************/ 86 86 87 'bbp_settings_user ' => array(87 'bbp_settings_users' => array( 88 88 89 89 // Edit lock setting … … 158 158 'title' => __( 'Topic tags', 'bbpress' ), 159 159 'callback' => 'bbp_admin_setting_callback_topic_tags', 160 'sanitize_callback' => 'intval', 161 'args' => array() 162 ), 163 164 // Allow topic tags 165 '_bbp_allow_search' => array( 166 'title' => __( 'Search', 'bbpress' ), 167 'callback' => 'bbp_admin_setting_callback_search', 160 168 'sanitize_callback' => 'intval', 161 169 'args' => array() … … 178 186 ), 179 187 180 // Allow threadde replies181 '_bbp_allow_threaded_replies' => array(182 'sanitize_callback' => 'intval',183 'args' => array()184 ),185 186 188 // Set reply threading level 187 189 '_bbp_thread_replies_depth' => array( 188 190 'title' => __( 'Reply Threading', 'bbpress' ), 189 191 'callback' => 'bbp_admin_setting_callback_thread_replies_depth', 192 'sanitize_callback' => 'intval', 193 'args' => array() 194 ), 195 196 // Allow threadde replies 197 '_bbp_allow_threaded_replies' => array( 190 198 'sanitize_callback' => 'intval', 191 199 'args' => array() … … 588 596 <input id="_bbp_allow_topic_tags" name="_bbp_allow_topic_tags" type="checkbox" id="_bbp_allow_topic_tags" value="1" <?php checked( bbp_allow_topic_tags( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_topic_tags' ); ?> /> 589 597 <label for="_bbp_allow_topic_tags"><?php esc_html_e( 'Allow topics to have tags', 'bbpress' ); ?></label> 598 599 <?php 600 } 601 602 /** 603 * Allow forum wide search 604 * 605 * @since bbPress (r4970) 606 * 607 * @uses checked() To display the checked attribute 608 */ 609 function bbp_admin_setting_callback_search() { 610 ?> 611 612 <input id="_bbp_allow_search" name="_bbp_allow_search" type="checkbox" id="_bbp_allow_search" value="1" <?php checked( bbp_allow_search( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_search' ); ?> /> 613 <label for="_bbp_allow_search"><?php esc_html_e( 'Allow forum wide search', 'bbpress' ); ?></label> 590 614 591 615 <?php
Note: See TracChangeset
for help on using the changeset viewer.