Plugin Directory

Changeset 3118794

Timestamp:
07/16/2024 01:29:20 AM (4 months ago)
Author:
pbiron
Message:

Update the priority at which admin_bar_menu is hooked into, to better support WP 6.6.

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

Legend:

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

    r1891868 r3118794  
    55 * Description: Add an indication to the Admin Bar of the environment WordPress is running in (e.g., Prod, Staging, QA, Dev, etc)
    66 * Plugin URI: https://github.com/pbiron/shc-show-env
    7  * Version: 1.1
     7 * Version: 1.
    88 * Author: Paul V. Biron/Sparrow Hawk Computing
    99 * Author URI: http://sparrowhawkcomputing.com
     
    1111 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1212 *
    13  * @copyright 2017-2018 Paul V. Biron/Sparrow Hawk Computing
     13 * @copyright 2017-20 Paul V. Biron/Sparrow Hawk Computing
    1414 * @package plugins
    1515 * @subpackage shc-show-env
     
    4141     * @var number
    4242     */
    43     const version = 1.1;
     43    const version = 1.;
    4444
    4545    /**
     
    8686        // priority=1 is to get it as far to the right as possible,
    8787        // hopefully to the right of my-account
    88         add_action( 'admin_bar_menu', array( __CLASS__, 'add_admin_bar_node' ), 1 );
    89 
     88        add_action( 'admin_bar_menu', array( __CLASS__, 'add_admin_bar_node' ), );
     89       
    9090        add_action( 'wp_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) );
    9191        add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_styles' ) );
  • show-environment-in-admin-bar/trunk/readme.txt

    r2325439 r3118794  
    44Tags: admin, admin-bar
    55Requires at least: 4.6
    6 Tested up to: 5.5
    7 Stable tag: 1.1
     6Tested up to:
     7Stable tag: 1.
    88License: GPLv2 or later
    99License URL: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57
     58
     59
     60
    5761= 1.1 =
    5862
Note: See TracChangeset for help on using the changeset viewer.