Skip to:
Content

bbPress.org

Changeset 6967 for trunk/src/bbpress.php


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/bbpress.php

    r6948 r6967  
    890890        // Tertiary Slugs
    891891        $feed_slug          = 'feed';
    892         $edit_slug          = 'edit';
     892        $edit_slug          = bbp_get_edit_slug();
    893893        $paged_slug         = bbp_get_paged_slug();
    894894        $user_favs_slug     = bbp_get_user_favorites_slug();
Note: See TracChangeset for help on using the changeset viewer.