WordPress.org

Make WordPress Core

#38648 closed defect (bug) (fixed)

No-op edit_post_link() when in a customizer preview

Reported by: helen Owned by: westonruter
Milestone: 4.7 Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch
Focuses: Cc:

Description

I saw a comment about how the combination of shift-click hint + visible edit shortcuts + disabled cursor over inaccessible links was confusing, and I tend to agree. It's also silly to have edit links that don't work and don't represent a preview except for privileged logged-in users, so I say we no-op them (in a way that can be undone by devs who actually have a use for them in the preview pane).

Related: #27403, #30937

Attachments (1)

38648.0.diff (642 bytes) - added by westonruter 10 months ago.

Download all attachments as: .zip

Change History (3)

#1 @westonruter
10 months ago

  • Keywords has-patch added
  • Owner set to westonruter
  • Status changed from new to accepted

#2 @westonruter
10 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 39133:

Customize: No-op edit_post_link() when in customizer preview.

Edit links can be restored in plugins by removing the __return_empty_string function from the get_edit_post_link filter at the customize_preview_init action.

Fixes #38648.

Note: See TracTickets for help on using tickets.