Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Issue #207 : Rename 'Save & Publish' button #223

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kienstra
Copy link
Contributor

@kienstra kienstra commented Aug 19, 2016

Request For Review

Hi @westonruter,
Could you please see this pull request for #207 , which sets a new name for the 'Save & Publish' button? It's 'Save' for the moment, pending whatever name you'd like to give it.

As you suggested in #35547, this overwrites api.l10n.save. When the Customizer initially loads, the value (text) of the button is 'Save & Publish'. In about 500 milliseconds, it replaces this with 'Saved'.

As you know, this 'Save & Publish' text is originally produced with PHP in customize.php#L117. So if we'd like to prevent it from appearing at all, it would have to be overwritten with JavaScript earlier than it’s already overwritten, which I think is in customize-controls.js#L3908.

As Weston suggested in #35547, overwrite api.l10n.save.
While the Customizer initially loads,
the value (text) of the button is 'Save & Publish'.
In about.5 seconds. it replaces this with 'Saved.'
@kienstra kienstra changed the title Issue #207 : Rename 'Save & Publish' button to 'Save'. Issue #207 : Rename 'Save & Publish' button Aug 19, 2016
@westonruter
Copy link
Contributor

Thanks, but per #207 (comment) I think we'll need to mull over this some more.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants