Skip to:
Content

bbPress.org

Changeset 6363


Ignore:
Timestamp:
03/04/2017 02:51:14 AM (7 years ago)
Author:
netweb
Message:

Replies: Allow pending replies to be edited on the front end.

This changeset in bbp_get_reply_edit_url() switches from detecting pretty permalinks using bbp_use_pretty_urls() to detect the query string for ? instead, this is due to pending replies always have ugly permalinks.

Props SergeyBiryukov.
Fixes #3054.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/replies/template.php

    r6352 r6363  
    20552055        $reply_link = bbp_remove_view_all( bbp_get_reply_permalink( $reply_id ) );
    20562056
    2057         // Pretty permalinks
    2058         if ( bbp_use_pretty_urls() ) {
     2057        // Pretty permalinks, previously used `bbp_use_pretty_urls()`
     2058        // https://bbpress.trac.wordpress.org/ticket/3054
     2059        if ( false === strpos( $reply_link, '?' ) ) {
    20592060            $url = trailingslashit( $reply_link ) . bbp_get_edit_rewrite_id();
    20602061            $url = user_trailingslashit( $url );
Note: See TracChangeset for help on using the changeset viewer.