diff --git a/app/EditorBox/Enqueues.php b/app/EditorBox/Enqueues.php index 869467f..e0450c4 100644 --- a/app/EditorBox/Enqueues.php +++ b/app/EditorBox/Enqueues.php @@ -4,8 +4,8 @@ class Enqueues { public function enqueue_editor_stuff() { - wp_enqueue_style( 'editor_box_style', plugins_url( 'css/editor.css', EDITORBOX_PLUGIN_FILE ), [], '1.1.1641749900' ); // date '+%s' - wp_enqueue_script( 'editor_box_script', plugins_url( 'js/editor.js', EDITORBOX_PLUGIN_FILE ), [], '1.1.1641749900' ); + wp_enqueue_style( 'editor_box_style', plugins_url( 'css/editor.css', EDITORBOX_PLUGIN_FILE ), [], '1.1.1641886040' ); // date '+%s' + wp_enqueue_script( 'editor_box_script', plugins_url( 'js/editor.js', EDITORBOX_PLUGIN_FILE ), [], '1.1.1641886040' ); wp_localize_script('editor_box_script', 'editor_box_int', [ 'ajaxurl' => admin_url('admin-ajax.php'), 'publish_button_value' => __( 'Publish', 'editor_box' ), diff --git a/js/editor.js b/js/editor.js index b014202..31481e3 100644 --- a/js/editor.js +++ b/js/editor.js @@ -89,7 +89,7 @@ document.addEventListener('DOMContentLoaded', function () { } function flipPublishingMode() { - if ( publish_button.value == 'Save draft' ) { + if ( publish_button.value == editor_box_int.draft_button_value ) { publish_button.value = editor_box_int.publish_button_value; mode_field.value = 'publish'; } else { diff --git a/readme.txt b/readme.txt index 637e7d6..7b7d224 100644 --- a/readme.txt +++ b/readme.txt @@ -62,4 +62,9 @@ Like on Facebook or Twitter, post title is not obligatory to provide. If you sav * Feature - Post can be saved as draft instead immediate publishing (press Ctrl button over Publish button to switch mode) * Enhancement - Added assets versioning to help refreshing cached versions between plugin releases * Enhancement - Use large image size in rendered html instead of full size -* Fix - Fixed issue with not handled image uploads when image size bigger than PHP upload_max_filesize \ No newline at end of file +* Fix - Fixed issue with not handled image uploads when image size bigger than PHP upload_max_filesize + += 1.1.1 = +*Release Date - * + +* Fix - Fixed script relying on English version of the value when it could be translated.