Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/19/2019 05:47:56 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Slugs: add support for configuring the "Edit" slug.

This commit adds supporting functions and UI for allowing the edit slug to be modified. This omission was originally intentional, as the rewrite rules and pretty permalink support were not fully implemented. Now that they are in 2.6, there is no reason not to allow this slug to be modified.

Related changes include swapping out the new slug setting for the rewrite ID in a few places, and removing a single hardcoded reference to 'edit' that was also overlooked.

Props espellcaste for noticing. Fixes #3285. For 2.7, trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/groups.php

    r6836 r6967  
    930930
    931931                    // Topic edit
    932                     if ( bp_action_variable( $offset + 2 ) === bbp_get_edit_rewrite_id() ) :
     932                    if ( bp_action_variable( $offset + 2 ) === bbp_get_edit_slug() ) :
    933933
    934934                        // Unset the super sticky link on edit topic template
     
    10031003                    }
    10041004
    1005                     if ( bp_action_variable( $offset + 2 ) === bbp_get_edit_rewrite_id() ) :
     1005                    if ( bp_action_variable( $offset + 2 ) === bbp_get_edit_slug() ) :
    10061006
    10071007                        // Get the main query object
Note: See TracChangeset for help on using the changeset viewer.