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

Commit

Permalink
Issue #207 : Rename 'Save & Publish' button to 'Save'.
Browse files Browse the repository at this point in the history
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.'
  • Loading branch information
Ryan Kienstra committed Aug 19, 2016
1 parent 68d00aa commit 1236cce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/customize-posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

0 comments on commit 1236cce

Please sign in to comment.