Changeset 5834 for trunk/src/includes/admin/settings.php
- Timestamp:
- 07/15/2015 03:59:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/settings.php
r5829 r5834 162 162 ), 163 163 164 // Allow per-forum moderators 165 '_bbp_allow_forum_mods' => array( 166 'title' => __( 'Forum Moderators', 'bbpress' ), 167 'callback' => 'bbp_admin_setting_callback_forum_mods', 168 'sanitize_callback' => 'intval', 169 'args' => array() 170 ), 171 164 172 // Allow topic tags 165 173 '_bbp_allow_search' => array( … … 597 605 <input name="_bbp_allow_topic_tags" id="_bbp_allow_topic_tags" type="checkbox" value="1" <?php checked( bbp_allow_topic_tags( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_topic_tags' ); ?> /> 598 606 <label for="_bbp_allow_topic_tags"><?php esc_html_e( 'Allow topics to have tags', 'bbpress' ); ?></label> 607 608 <?php 609 } 610 611 /** 612 * Allow forum-mods setting field 613 * 614 * @since bbPress (r5834) 615 * 616 * @uses checked() To display the checked attribute 617 */ 618 function bbp_admin_setting_callback_forum_mods() { 619 ?> 620 621 <input name="_bbp_allow_forum_mods" id="_bbp_allow_forum_mods" type="checkbox" value="1" <?php checked( bbp_allow_forum_mods( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_forum_mods' ); ?> /> 622 <label for="_bbp_allow_forum_mods"><?php esc_html_e( 'Allow forums to have dedicated moderators', 'bbpress' ); ?></label> 599 623 600 624 <?php
Note: See TracChangeset
for help on using the changeset viewer.