Skip to:
Content

bbPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#3054 closed defect (fixed)

Pending posts cannot be edited

Reported by: SergeyBiryukov Owned by: netweb
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: Component - Replies Keywords: has-patch commit
Cc:

Description

Background: #meta2478

Pending posts have an incorrect edit URL:

https://wordpress.org/support/?post_type=reply&p=8737601/edit/

/edit/ should only be used for pretty permalinks, but is erroneously attached to an ugly permalink here.

bbp_get_reply_edit_url() checks for pretty permalinks using bbp_use_pretty_urls(), but does not account for the fact that pending posts always have ugly permalinks. Same for bbp_get_forum_edit_url().

Attachments (1)

3054.patch (1.0 KB) - added by SergeyBiryukov 3 years ago.

Download all attachments as: .zip

Change History (4)

@SergeyBiryukov
3 years ago

#1 @netweb
3 years ago

In 6362:

Topics: Allow pending topics to be edited on the front end.

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

Props SergeyBiryukov.
See #3054.

#2 @netweb
3 years ago

  • Owner set to netweb
  • Resolution set to fixed
  • Status changed from new to closed

In 6363:

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.

#3 @netweb
2 years ago

#2943 was marked as a duplicate

Note: See TracTickets for help on using tickets.