diff --git a/admin-bar-wrap-fix.php b/admin-bar-wrap-fix.php index 83f73ba..c64034f 100755 --- a/admin-bar-wrap-fix.php +++ b/admin-bar-wrap-fix.php @@ -6,22 +6,24 @@ * Author: KZeni * Author URI: http://kzeni.com * License: GPLv3 - * Version: 1.0.5 + * Version: 1.0.6 * Requires at least: 4.6 - * Tested up to: 5.5 + * Tested up to: 5.6 */ -define('ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION','1.0.5'); -define('ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE',__FILE__); -define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_PATH',plugin_dir_path(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE)); -define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_URL',plugin_dir_url(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE)); +define('ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION', '1.0.6'); +define('ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE', __FILE__); +define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_PATH', plugin_dir_path(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE)); +define('ADMIN_BAR_WRAP_FIX_PLUGIN_DIR_URL', plugin_dir_url(ADMIN_BAR_WRAP_FIX_PLUGIN_PRIMARY_FILE)); -function add_wp_adminbar_wrap_fix_css() { - if(is_admin_bar_showing()){ // Only bother to include stylesheet when the admin bar is being shown - wp_register_style('admin-bar-wrap-fix',plugins_url('/admin-bar-wrap-fix.css',__FILE__),array(),ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION,'screen'); +function add_wp_adminbar_wrap_fix_css() +{ + if (is_admin_bar_showing()) { + // Only bother to include stylesheet when the admin bar is being shown + wp_register_style('admin-bar-wrap-fix', plugins_url('/admin-bar-wrap-fix.css', __FILE__), [], ADMIN_BAR_WRAP_FIX_PLUGIN_VERSION, 'screen'); wp_enqueue_style('admin-bar-wrap-fix'); } } add_action('wp_enqueue_scripts', 'add_wp_adminbar_wrap_fix_css'); add_action('admin_enqueue_scripts', 'add_wp_adminbar_wrap_fix_css'); -?> \ No newline at end of file +?> diff --git a/readme.txt b/readme.txt index 8374835..ea5f1e7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: KZeni Donate link: https://www.paypal.me/KZeni License: GPLv3 Tags: Admin Bar, adminbar, ui, ui fix, overflow, wrapping -Stable tag: 1.0.5 -Tested up to: 5.5 +Stable tag: 1.0.6 +Tested up to: 5.6 Requires at least: 4.6 Requires PHP: 5.4 @@ -30,6 +30,12 @@ I would think so. This has been submitted as a patch at https://core.trac.wordpr == Changelog == += 1.0.6 = + +Released November 23rd, 2020 + +* Confirmed WordPress 5.6 compliance. + = 1.0.5 = Released August 14th, 2020