Changeset 6967 for trunk/src/includes/admin/settings.php
- Timestamp:
- 11/19/2019 05:47:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/settings.php
r6954 r6967 385 385 'sanitize_callback' => 'bbp_sanitize_slug', 386 386 'args' => array( 'label_for'=>'_bbp_reply_slug' ) 387 ), 388 389 // Edit slug setting 390 '_bbp_edit_slug' => array( 391 'title' => esc_html__( 'Edit', 'bbpress' ), 392 'callback' => 'bbp_admin_setting_callback_edit_slug', 393 'sanitize_callback' => 'bbp_sanitize_slug', 394 'args' => array( 'label_for'=>'_bbp_edit_slug' ) 387 395 ), 388 396 … … 1277 1285 ?> 1278 1286 1279 <p><?php printf( esc_html__( 'Custom slugs for single forums, topics, replies, tags, views, and search.', 'bbpress' ), get_admin_url( null, 'options-permalink.php' ) ); ?></p>1287 <p><?php printf( esc_html__( 'Custom slugs for single forums, topics, replies, tags, views, edit, and search.', 'bbpress' ), get_admin_url( null, 'options-permalink.php' ) ); ?></p> 1280 1288 1281 1289 <?php … … 1371 1379 // Slug Check 1372 1380 bbp_form_slug_conflict_check( '_bbp_search_slug', 'search' ); 1381 } 1382 1383 /** 1384 * Edit slug setting field 1385 * 1386 * @since 2.6.2 bbPress (r6965) 1387 */ 1388 function bbp_admin_setting_callback_edit_slug() { 1389 ?> 1390 1391 <input name="_bbp_edit_slug" id="_bbp_edit_slug" type="text" class="regular-text code" value="<?php bbp_form_option( '_bbp_edit_slug', 'edit', true ); ?>"<?php bbp_maybe_admin_setting_disabled( '_bbp_edit_slug' ); ?> /> 1392 1393 <?php 1394 // Slug Check 1395 bbp_form_slug_conflict_check( '_bbp_edit_slug', 'edit' ); 1373 1396 } 1374 1397 … … 2025 2048 '_bbp_reply_slug' => array( 'name' => esc_html__( 'Reply slug', 'bbpress' ), 'default' => 'reply', 'context' => 'bbPress' ), 2026 2049 2050 // Edit slug 2051 '_bbp_edit_slug' => array( 'name' => esc_html__( 'Edit slug', 'bbpress' ), 'default' => 'edit', 'context' => 'bbPress' ), 2052 2027 2053 // User profile slug 2028 2054 '_bbp_user_slug' => array( 'name' => esc_html__( 'User base', 'bbpress' ), 'default' => 'users', 'context' => 'bbPress' ),
Note: See TracChangeset
for help on using the changeset viewer.