Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/26/2017 07:12:34 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Engagements: First pass at:

  • User profile section
  • Template parts changes
  • Rewrite rules support
  • Repair & upgrade tools
  • BuddyPress support
  • engagement slug setting

See #3068.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/settings.php

    r6277 r6320  
    390390                'sanitize_callback' => 'bbp_sanitize_slug',
    391391                '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' )
    392400            )
    393401        ),
     
    10601068    // Slug Check
    10611069    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 */
     1079function 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' );
    10621087}
    10631088
Note: See TracChangeset for help on using the changeset viewer.