[wp-trac] [WordPress Trac] #28505: Allow button manipulation in `get_sample_permalink_html()`
WordPress Trac
noreply at wordpress.org
Wed Jun 11 19:30:07 UTC 2014
#28505: Allow button manipulation in `get_sample_permalink_html()`
----------------------------+-----------------------------
Reporter: ericmann | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.9.1
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Currently, default buttons (Edit, View {Post Type}, Get Shortlink) are
added directly as html strings within the `get_sample_permalink_html`
filter. This makes it highly difficult for developers to re-order, remove,
or otherwise manipulate these buttons.
I propose adding a new filter within the `get_sample_permalink_html()`
function that builds these extra buttons as an array, allowing
plugins/themes to hook in and manipulate them cleanly ''before'' they're
converted to a long HTML string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28505>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list