Plugin Directory

Changeset 3112987

Timestamp:
07/05/2024 11:02:50 AM (5 weeks ago)
Author:
roytanck
Message:

Version 1.3.3, tested with WP 6.6.

Location:
display-environment-type/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • display-environment-type/trunk/app/Plugin.php

    r2993776 r3112987  
    4242
    4343        // Add an admin bar item if in wp-admin.
    44         add_action( 'admin_bar_menu', [ $class, 'add_toolbar_item' ] );
     44        add_action( 'admin_bar_menu', [ $class, 'add_toolbar_item' ] );
    4545
    4646        // Add styling.
    4747        add_action( 'admin_enqueue_scripts', [ $class, 'enqueue_styles' ] );
    4848        add_action( 'wp_enqueue_scripts', [ $class, 'enqueue_styles' ] );
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
     65
     66
     67
     68
     69
     70
    4971    }
    5072
     
    5880    public static function add_glance_item( $items ) {
    5981        $env_type = wp_get_environment_type();
     82
    6083
    6184        if ( !empty( $env_type ) ) {
    62             $items[] = '<span class="' . esc_attr( 'det-env-type det-' . $env_type ) . '" title="' .  esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . esc_html( ucfirst( $env_type ) ) . '</span>';
     85            $items[] = '<span class="' . esc_attr( 'det-env-type det-' . $env_type ) . '" title="' .  esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . esc_html( ) . '</span>';
    6386        }
    6487
     
    7598    public static function add_toolbar_item( $admin_bar ) {
    7699        $env_type = wp_get_environment_type();
     100
    77101
    78102        if ( !empty( $env_type ) ) {
     
    80104                'id'    => 'det_env_type',
    81105                'parent'=> 'top-secondary',
    82                 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . esc_html( ucfirst( $env_type ) ) . '</span>',
     106                'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . esc_html( ) . '</span>',
    83107                'meta'  => array(
    84108                    'class' => 'det-' . sanitize_title( $env_type ),
  • display-environment-type/trunk/display-environment-type.php

    r2993776 r3112987  
    44 * Plugin URI:        https://roytanck.com/2020/08/21/new-wordpress-plugin-display-environment-type/
    55 * Description:       Display the site's environment type in wp-admin.
    6  * Version:           1.3.2
     6 * Version:           1.3.
    77 * Requires at least: 5.5
    88 * Requires PHP:      5.6
  • display-environment-type/trunk/readme.txt

    r3065386 r3112987  
    11=== Display Environment Type ===
    2 Contributors: roytanck, markjaquith, tflight, mrwweb
     2Contributors: roytanck, markjaquith, tflight, mrwweb
    33Tags: environment type, dtap, production, staging, development
    44Requires at least: 5.5
    5 Tested up to: 6.5
     5Tested up to: 6.
    66Requires PHP: 5.6
    7 Stable tag: 1.3.2
     7Stable tag: 1.3.
    88License: GPLv3
    99
     
    5252== Changelog ==
    5353
     54
     55
     56
    5457= 1.3.2 (2023-11-10) =
    5558* Assessibility improvements by @mrwweb.
Note: See TracChangeset for help on using the changeset viewer.