diff --git a/README.md b/README.md index bb2b2e8..13e005a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -WordPress Shortcode Button (1.0.2) +WordPress Shortcode Button (1.0.3) ================ Tinymce and Quicktag buttons (and modals) for outputting shortcodes. Built to work with [CMB2](https://github.com/WebDevStudios/CMB2). @@ -129,6 +129,9 @@ function shortcode_button_only_pages() { #### Changelog +* 1.0.3 + * Hide modal manually to ensure it is hidden before CSS loads. Prevents flash of content. + * 1.0.2 * Fix broken loader. Needs to hook into a WordPress hook, and uses first available (`'muplugins_loaded'`, `'plugins_loaded'`, `'after_setup_theme'`) to fire the include action. diff --git a/lib/class-shortcode-button.php b/lib/class-shortcode-button.php index 6dbf0ea..28bcb43 100644 --- a/lib/class-shortcode-button.php +++ b/lib/class-shortcode-button.php @@ -4,7 +4,7 @@ * * @todo Fix generic ids possibly conflicting (maybe add a prefix to all fields) * - * @version 1.0.0 + * @version 1.0.3 */ class Shortcode_Button { @@ -14,7 +14,7 @@ class Shortcode_Button { * @var string * @since 0.1.2 */ - const VERSION = '1.0.0'; + const VERSION = SHORTCODE_BUTTONS_VERSION; protected $button_data = array(); protected $args = array(); diff --git a/shortcode-button.php b/shortcode-button.php index eefc1ca..ac45bb2 100644 --- a/shortcode-button.php +++ b/shortcode-button.php @@ -10,7 +10,7 @@ * @author Justin Sternberg * @copyright 2015-2016 Justin Sternberg * @license GPL-2.0+ - * @version 1.0.2 + * @version 1.0.3 * @link https://github.com/jtsternberg/Shortcode_Button * @since 1.0.0 */ @@ -37,7 +37,7 @@ * Loader versioning: http://jtsternberg.github.io/wp-lib-loader/ */ -if ( ! class_exists( 'Shortcode_Button_102', false ) ) { +if ( ! class_exists( 'Shortcode_Button_103', false ) ) { /** * Versioned loader class-name @@ -48,18 +48,18 @@ * @package Shortcode_Button * @author Justin Sternberg * @license GPL-2.0+ - * @version 1.0.2 + * @version 1.0.3 * @link https://github.com/jtsternberg/Shortcode_Button * @since 1.0.0 */ - class Shortcode_Button_102 { + class Shortcode_Button_103 { /** * Shortcode_Button version number * @var string * @since 1.0.0 */ - const VERSION = '1.0.2'; + const VERSION = '1.0.3'; /** * Current version hook priority. @@ -68,7 +68,7 @@ class Shortcode_Button_102 { * @var int * @since 1.0.0 */ - const PRIORITY = 9997; + const PRIORITY = 9996; /** * Starts the version checking process. @@ -152,5 +152,5 @@ public function include_lib() { } // Kick it off. - new Shortcode_Button_102; + new Shortcode_Button_103; }