From 1236cceba9340d39ddc1ff8ce4597bb38fc71613 Mon Sep 17 00:00:00 2001 From: Ryan Kienstra Date: Thu, 18 Aug 2016 22:28:08 -0300 Subject: [PATCH] Issue #207 : Rename 'Save & Publish' button to 'Save'. 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.' --- js/customize-posts.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/customize-posts.js b/js/customize-posts.js index 78fcf98..095eca5 100644 --- a/js/customize-posts.js +++ b/js/customize-posts.js @@ -588,6 +588,9 @@ api.previewer.bind( 'focus-control', component.focusControl ); component.ensureAutofocusConstructPosts(); + + // Change 'Save & Publish' button value to 'Save' + api.l10n.save = 'Save'; } ); })( wp.customize, jQuery );