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/replies/template.php

    r6931 r6967  
    19061906        // https://bbpress.trac.wordpress.org/ticket/3054
    19071907        if ( false === strpos( $reply_link, '?' ) ) {
    1908             $url = trailingslashit( $reply_link ) . bbp_get_edit_rewrite_id();
     1908            $url = trailingslashit( $reply_link ) . bbp_get_edit_slug();
    19091909            $url = user_trailingslashit( $url );
    19101910
Note: See TracChangeset for help on using the changeset viewer.