Plugin Directory

Changeset 3118797


Ignore:
Timestamp:
07/16/2024 02:09:26 AM (17 months ago)
Author:
pbiron
Message:

Bug fix: forgot to declare $wp_version as a global in SHC_Show_Env:init(). D'oh!

Location:
show-environment-in-admin-bar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • show-environment-in-admin-bar/trunk/plugin.php

    r3118794 r3118797  
    6969     */
    7070    function init() {
     71        global $wp_version;
     72
    7173        /**
    7274         * Filters whether our node should be hidden in the Admin Bar.
     
    8789        // hopefully to the right of my-account
    8890        add_action( 'admin_bar_menu', array( __CLASS__, 'add_admin_bar_node' ), version_compare( $wp_version, '6.6-beta1', '>=' ) ? PHP_INT_MAX : PHP_INT_MIN );
    89        
     91
    9092        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) );
    9193        add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) );
  • show-environment-in-admin-bar/trunk/readme.txt

    r3118794 r3118797  
    55Requires at least: 4.6
    66Tested up to: 6.6
    7 Stable tag: 1.2
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URL: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 1.2.1 (2024-07-15) =
     58
     59* Bug fix: forgot to declare `$wp_version` as a global in `SHC_Show_Env:init()`.  D'oh!
     60
    5761= 1.2 (2024-07-15) =
    5862
Note: See TracChangeset for help on using the changeset viewer.