Changeset 6320 for trunk/src/includes/admin/settings.php
- Timestamp:
- 02/26/2017 07:12:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/settings.php
r6277 r6320 390 390 'sanitize_callback' => 'bbp_sanitize_slug', 391 391 'args' => array( 'label_for'=>'_bbp_user_subs_slug' ) 392 ), 393 394 // Engagements slug setting 395 '_bbp_user_engagements_slug' => array( 396 'title' => __( 'Engagements', 'bbpress' ), 397 'callback' => 'bbp_admin_setting_callback_user_engagements_slug', 398 'sanitize_callback' => 'bbp_sanitize_slug', 399 'args' => array( 'label_for'=>'_bbp_user_engagements_slug' ) 392 400 ) 393 401 ), … … 1060 1068 // Slug Check 1061 1069 bbp_form_slug_conflict_check( '_bbp_user_subs_slug', 'subscriptions' ); 1070 } 1071 1072 /** 1073 * Engagements slug setting field 1074 * 1075 * @since 2.6.0 bbPress (r6320) 1076 * 1077 * @uses bbp_form_option() To output the option value 1078 */ 1079 function bbp_admin_setting_callback_user_engagements_slug() { 1080 ?> 1081 1082 <input name="_bbp_user_engagements_slug" id="_bbp_user_engagements_slug" type="text" class="regular-text code" value="<?php bbp_form_option( '_bbp_user_engagements_slug', 'engagements', true ); ?>"<?php bbp_maybe_admin_setting_disabled( '_bbp_user_engagements_slug' ); ?> /> 1083 1084 <?php 1085 // Slug Check 1086 bbp_form_slug_conflict_check( '_bbp_user_engagements_slug', 'engagements' ); 1062 1087 } 1063 1088
Note: See TracChangeset
for help on using the changeset viewer.