[wp-trac] [WordPress Trac] #35547: Customizer: filter "Save & Publish" button text
WordPress Trac
noreply at wordpress.org
Wed Jan 20 21:16:43 UTC 2016
#35547: Customizer: filter "Save & Publish" button text
-------------------------+-------------------------
Reporter: DJPaul | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Customize | Version:
Severity: normal | Resolution: maybelater
Keywords: | Focuses:
-------------------------+-------------------------
Changes (by westonruter):
* status: new => closed
* resolution: => maybelater
* milestone: Awaiting Review =>
Comment:
In the [https://wordpress.org/plugins/customize-snapshots/ Customize
Snapshots] plugin, the “Save & Publish” buttons are actually split up into
two separate buttons, “Save” and “Publish”, where the former serves to
create a draft and the latter actually makes them live. This plugin is a
feature plugin to implement aspects of transactions (#30937). This being
said, the “Save & Publish” buttons may get split up in Core after
transactions land, and I'm wary to create a new filter for this one button
right now.
In the mean time, I'd suggest handling this in JS, by overridding the
`wp.customize.l10n.save` and `wp.customize.l10n.saved` properties. You
would also need to change the button's original label as exported in PHP
to be the same as you set `wp.customize.l10n.saved` to.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35547#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list