Skip to content

Commit

Permalink
Confirmed WordPress 5.6 compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
KZeni committed Nov 24, 2020
1 parent 3794d2a commit 1c6029b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
22 changes: 12 additions & 10 deletions admin-bar-wrap-fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
?>
?>
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 1c6029b

Please sign in to comment.