Plugin Directory

Changeset 2934357


Ignore:
Timestamp:
07/05/2023 09:43:01 AM (3 years ago)
Author:
mediumraredev
Message:

Update to version 1.2.1 from GitHub

Location:
environment-debug-admin-toolbar
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • environment-debug-admin-toolbar/tags/1.2.1/changelog.txt

    r2911781 r2934357  
     12023.07.05 - version 1.2.1
     2 * Checked compatibility with WP 6.3.
     3 * Fixed showing an incomplete title.
     4
    152023.05.12 - version 1.2.0
    26 * Added bar to the frontend behind a filter.
  • environment-debug-admin-toolbar/tags/1.2.1/environment-debug-admin-toolbar.php

    r2911781 r2934357  
    1414 * Plugin Name:       Environment & Debug Bar
    1515 * Description:       Display your environment and debug info in the toolbar.
    16  * Version:           1.2.0
     16 * Version:           1.2.1
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.4
     
    3030define( 'EDT_BASENAME', plugin_basename( EDT_FILE ) );
    3131
    32 define( 'EDT_VERSION', '1.2.0' );
     32define( 'EDT_VERSION', '1.2.1' );
    3333
    3434/**
     
    8383        $env_development = apply_filters(
    8484            'edt_env_development',
    85             array(
     85            [
    8686                'development',
    8787                'develop',
    8888                'dev',
    8989                'local',
    90             )
     90            ]
    9191        );
    9292
     
    9797        $env_staging = apply_filters(
    9898            'edt_env_staging',
    99             array(
     99            [
    100100                'staging',
    101101                'stage',
     
    105105                'accept',
    106106                'integration',
    107             )
     107            ]
    108108        );
    109109
     
    114114        $env_production = apply_filters(
    115115            'edt_env_production',
    116             array(
     116            [
    117117                'production',
    118118                'prod',
    119119                'live',
    120             )
     120            ]
    121121        );
    122122
     
    178178            'edt-backend-css', // Name.
    179179            plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL.
    180             array(), // Deps.
     180            [], // Deps.
    181181            EDT_VERSION, // Version.
    182182            'all' // Media.
     
    200200            'edt-frontend-css', // Name.
    201201            plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL.
    202             array(), // Deps.
     202            [], // Deps.
    203203            EDT_VERSION, // Version.
    204204            'all' // Media.
     
    239239        $type_name = $this->env_type_label( $type_id );
    240240
    241         $wp_admin_bar->add_group(
    242             array(
    243                 'id' => 'edt-group',
    244             )
    245         );
    246 
    247         $wp_admin_bar->add_node(
    248             array(
    249                 'id'     => 'edt-node',
    250                 'title'  => $type_name,
    251                 'parent' => 'edt-group',
    252                 'meta'   => array(
    253                     'title' => __( 'Your env is set to:', 'environment-debug-toolbar' ) . ' ' . $this->get_env(),
    254                     'class' => 'env-type-' . $type_id,
    255                 ),
    256             )
    257         );
    258 
    259         $wp_admin_bar->add_node(
    260             array(
    261                 'id'     => 'edt-wp-debug',
    262                 'title'  => $this->html_label_value( 'WP_DEBUG', ( WP_DEBUG ? 'true' : 'false' ) ),
     241        $wp_admin_bar->add_group([
     242            'id' => 'edt-group',
     243        ]);
     244
     245        $wp_admin_bar->add_node([
     246            'id'     => 'edt-node',
     247            'title'  => $type_name,
     248            'parent' => 'edt-group',
     249            'meta'   => [
     250                'title' => ( $this->get_env() ? __( 'Your env is set to:', 'environment-debug-toolbar' ) . ' ' . $this->get_env() : '' ),
     251                'class' => 'env-type-' . $type_id,
     252            ],
     253        ]);
     254
     255        $wp_admin_bar->add_node([
     256            'id'     => 'edt-wp-debug',
     257            'title'  => $this->html_label_value( 'WP_DEBUG', ( WP_DEBUG ? 'true' : 'false' ) ),
     258            'parent' => 'edt-node',
     259        ]);
     260
     261        if ( WP_DEBUG ) {
     262            $wp_admin_bar->add_node([
     263                'id'     => 'edt-wp-debug-log',
     264                'title'  => $this->html_label_value( 'WP_DEBUG_LOG', ( WP_DEBUG_LOG ? 'true' : 'false' ) ),
    263265                'parent' => 'edt-node',
    264             )
    265         );
    266 
    267         if ( WP_DEBUG ) {
    268             $wp_admin_bar->add_node(
    269                 array(
    270                     'id'     => 'edt-wp-debug-log',
    271                     'title'  => $this->html_label_value( 'WP_DEBUG_LOG', ( WP_DEBUG_LOG ? 'true' : 'false' ) ),
    272                     'parent' => 'edt-node',
    273                     'meta'   => array(
    274                         'title' => WP_DEBUG_LOG,
    275                     ),
    276                 )
    277             );
    278 
    279             $wp_admin_bar->add_node(
    280                 array(
    281                     'id'     => 'edt-wp-debug-display',
    282                     'title'  => $this->html_label_value( 'WP_DEBUG_DISPLAY', ( WP_DEBUG_DISPLAY ? 'true' : 'false' ) ),
    283                     'parent' => 'edt-node',
    284                 )
    285             );
    286 
    287             $wp_admin_bar->add_node(
    288                 array(
    289                     'id'     => 'edt-script-display',
    290                     'title'  => $this->html_label_value( 'SCRIPT_DEBUG', ( SCRIPT_DEBUG ? 'true' : 'false' ) ),
    291                     'parent' => 'edt-node',
    292                 )
    293             );
    294 
    295             $wp_admin_bar->add_node(
    296                 array(
    297                     'id'     => 'edt-savequeries',
    298                     'title'  => $this->html_label_value( 'SAVEQUERIES', ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ? 'true' : 'false' ) ),
    299                     'parent' => 'edt-node',
    300                 )
    301             );
    302         }
    303 
    304         $wp_admin_bar->add_node(
    305             array(
    306                 'id'     => 'edt-php',
    307                 'title'  => $this->html_label_value( 'PHP', phpversion() ),
     266                'meta'   => [
     267                    'title' => WP_DEBUG_LOG,
     268                ],
     269            ]);
     270
     271            $wp_admin_bar->add_node([
     272                'id'     => 'edt-wp-debug-display',
     273                'title'  => $this->html_label_value( 'WP_DEBUG_DISPLAY', ( WP_DEBUG_DISPLAY ? 'true' : 'false' ) ),
    308274                'parent' => 'edt-node',
    309             )
    310         );
     275            ]);
     276
     277            $wp_admin_bar->add_node([
     278                'id'     => 'edt-script-display',
     279                'title'  => $this->html_label_value( 'SCRIPT_DEBUG', ( SCRIPT_DEBUG ? 'true' : 'false' ) ),
     280                'parent' => 'edt-node',
     281            ]);
     282
     283            $wp_admin_bar->add_node([
     284                'id'     => 'edt-savequeries',
     285                'title'  => $this->html_label_value( 'SAVEQUERIES', ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ? 'true' : 'false' ) ),
     286                'parent' => 'edt-node',
     287            ]);
     288        }
     289
     290        $wp_admin_bar->add_node([
     291            'id'     => 'edt-php',
     292            'title'  => $this->html_label_value( 'PHP', phpversion() ),
     293            'parent' => 'edt-node',
     294        ]);
    311295    }
    312296
     
    318302    public function register_hooks() {
    319303        // Register backend styles.
    320         add_action( 'admin_enqueue_scripts', array( $this, 'register_backend_styles' ) );
     304        add_action( 'admin_enqueue_scripts', [ $this, 'register_backend_styles' ] );
    321305        // Register frontend styles.
    322         add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_styles' ) );
     306        add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_styles' ] );
    323307        // Register tranlations.
    324         add_action( 'init', array( $this, 'register_translations' ) );
     308        add_action( 'init', [ $this, 'register_translations' ] );
    325309        // Register toolbar.
    326         add_action( 'admin_bar_menu', array( $this, 'register_toolbar' ), 300, 1 );
     310        add_action( 'admin_bar_menu', [ $this, 'register_toolbar' ], 300, 1 );
    327311    }
    328312}
  • environment-debug-admin-toolbar/tags/1.2.1/languages/environment-debug-admin-toolbar.pot

    r2911781 r2934357  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Environment & Debug Bar 1.2.0\n"
     5"Project-Id-Version: Environment & Debug Bar 1.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/environment-debug-admin-toolbar\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-05-12T19:58:56+00:00\n"
     12"POT-Creation-Date: 2023-07-05T09:33:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.0-alpha-04d5fdd\n"
     
    5151msgstr ""
    5252
    53 #: environment-debug-admin-toolbar.php:253
     53#: environment-debug-admin-toolbar.php:250
    5454msgid "Your env is set to:"
    5555msgstr ""
  • environment-debug-admin-toolbar/tags/1.2.1/readme.txt

    r2911781 r2934357  
    33Tags: environment, env, debug, staging, production
    44Requires at least: 5.5
    5 Tested up to: 6.2
    6 Stable tag: 1.2.0
     5Tested up to: 6.3
     6Stable tag: 1.2.1
    77License: GPLv3
    88
     
    9292== Changelog ==
    9393
     94= 1.2.1 =
     95* Checked compatibility with WP 6.3.
     96* Fixed showing an incomplete title.
     97
    9498= 1.2.0 =
    9599* Added bar to the frontend behind a filter.
  • environment-debug-admin-toolbar/trunk/changelog.txt

    r2911781 r2934357  
     12023.07.05 - version 1.2.1
     2 * Checked compatibility with WP 6.3.
     3 * Fixed showing an incomplete title.
     4
    152023.05.12 - version 1.2.0
    26 * Added bar to the frontend behind a filter.
  • environment-debug-admin-toolbar/trunk/environment-debug-admin-toolbar.php

    r2911781 r2934357  
    1414 * Plugin Name:       Environment & Debug Bar
    1515 * Description:       Display your environment and debug info in the toolbar.
    16  * Version:           1.2.0
     16 * Version:           1.2.1
    1717 * Requires at least: 5.5
    1818 * Requires PHP:      7.4
     
    3030define( 'EDT_BASENAME', plugin_basename( EDT_FILE ) );
    3131
    32 define( 'EDT_VERSION', '1.2.0' );
     32define( 'EDT_VERSION', '1.2.1' );
    3333
    3434/**
     
    8383        $env_development = apply_filters(
    8484            'edt_env_development',
    85             array(
     85            [
    8686                'development',
    8787                'develop',
    8888                'dev',
    8989                'local',
    90             )
     90            ]
    9191        );
    9292
     
    9797        $env_staging = apply_filters(
    9898            'edt_env_staging',
    99             array(
     99            [
    100100                'staging',
    101101                'stage',
     
    105105                'accept',
    106106                'integration',
    107             )
     107            ]
    108108        );
    109109
     
    114114        $env_production = apply_filters(
    115115            'edt_env_production',
    116             array(
     116            [
    117117                'production',
    118118                'prod',
    119119                'live',
    120             )
     120            ]
    121121        );
    122122
     
    178178            'edt-backend-css', // Name.
    179179            plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL.
    180             array(), // Deps.
     180            [], // Deps.
    181181            EDT_VERSION, // Version.
    182182            'all' // Media.
     
    200200            'edt-frontend-css', // Name.
    201201            plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL.
    202             array(), // Deps.
     202            [], // Deps.
    203203            EDT_VERSION, // Version.
    204204            'all' // Media.
     
    239239        $type_name = $this->env_type_label( $type_id );
    240240
    241         $wp_admin_bar->add_group(
    242             array(
    243                 'id' => 'edt-group',
    244             )
    245         );
    246 
    247         $wp_admin_bar->add_node(
    248             array(
    249                 'id'     => 'edt-node',
    250                 'title'  => $type_name,
    251                 'parent' => 'edt-group',
    252                 'meta'   => array(
    253                     'title' => __( 'Your env is set to:', 'environment-debug-toolbar' ) . ' ' . $this->get_env(),
    254                     'class' => 'env-type-' . $type_id,
    255                 ),
    256             )
    257         );
    258 
    259         $wp_admin_bar->add_node(
    260             array(
    261                 'id'     => 'edt-wp-debug',
    262                 'title'  => $this->html_label_value( 'WP_DEBUG', ( WP_DEBUG ? 'true' : 'false' ) ),
     241        $wp_admin_bar->add_group([
     242            'id' => 'edt-group',
     243        ]);
     244
     245        $wp_admin_bar->add_node([
     246            'id'     => 'edt-node',
     247            'title'  => $type_name,
     248            'parent' => 'edt-group',
     249            'meta'   => [
     250                'title' => ( $this->get_env() ? __( 'Your env is set to:', 'environment-debug-toolbar' ) . ' ' . $this->get_env() : '' ),
     251                'class' => 'env-type-' . $type_id,
     252            ],
     253        ]);
     254
     255        $wp_admin_bar->add_node([
     256            'id'     => 'edt-wp-debug',
     257            'title'  => $this->html_label_value( 'WP_DEBUG', ( WP_DEBUG ? 'true' : 'false' ) ),
     258            'parent' => 'edt-node',
     259        ]);
     260
     261        if ( WP_DEBUG ) {
     262            $wp_admin_bar->add_node([
     263                'id'     => 'edt-wp-debug-log',
     264                'title'  => $this->html_label_value( 'WP_DEBUG_LOG', ( WP_DEBUG_LOG ? 'true' : 'false' ) ),
    263265                'parent' => 'edt-node',
    264             )
    265         );
    266 
    267         if ( WP_DEBUG ) {
    268             $wp_admin_bar->add_node(
    269                 array(
    270                     'id'     => 'edt-wp-debug-log',
    271                     'title'  => $this->html_label_value( 'WP_DEBUG_LOG', ( WP_DEBUG_LOG ? 'true' : 'false' ) ),
    272                     'parent' => 'edt-node',
    273                     'meta'   => array(
    274                         'title' => WP_DEBUG_LOG,
    275                     ),
    276                 )
    277             );
    278 
    279             $wp_admin_bar->add_node(
    280                 array(
    281                     'id'     => 'edt-wp-debug-display',
    282                     'title'  => $this->html_label_value( 'WP_DEBUG_DISPLAY', ( WP_DEBUG_DISPLAY ? 'true' : 'false' ) ),
    283                     'parent' => 'edt-node',
    284                 )
    285             );
    286 
    287             $wp_admin_bar->add_node(
    288                 array(
    289                     'id'     => 'edt-script-display',
    290                     'title'  => $this->html_label_value( 'SCRIPT_DEBUG', ( SCRIPT_DEBUG ? 'true' : 'false' ) ),
    291                     'parent' => 'edt-node',
    292                 )
    293             );
    294 
    295             $wp_admin_bar->add_node(
    296                 array(
    297                     'id'     => 'edt-savequeries',
    298                     'title'  => $this->html_label_value( 'SAVEQUERIES', ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ? 'true' : 'false' ) ),
    299                     'parent' => 'edt-node',
    300                 )
    301             );
    302         }
    303 
    304         $wp_admin_bar->add_node(
    305             array(
    306                 'id'     => 'edt-php',
    307                 'title'  => $this->html_label_value( 'PHP', phpversion() ),
     266                'meta'   => [
     267                    'title' => WP_DEBUG_LOG,
     268                ],
     269            ]);
     270
     271            $wp_admin_bar->add_node([
     272                'id'     => 'edt-wp-debug-display',
     273                'title'  => $this->html_label_value( 'WP_DEBUG_DISPLAY', ( WP_DEBUG_DISPLAY ? 'true' : 'false' ) ),
    308274                'parent' => 'edt-node',
    309             )
    310         );
     275            ]);
     276
     277            $wp_admin_bar->add_node([
     278                'id'     => 'edt-script-display',
     279                'title'  => $this->html_label_value( 'SCRIPT_DEBUG', ( SCRIPT_DEBUG ? 'true' : 'false' ) ),
     280                'parent' => 'edt-node',
     281            ]);
     282
     283            $wp_admin_bar->add_node([
     284                'id'     => 'edt-savequeries',
     285                'title'  => $this->html_label_value( 'SAVEQUERIES', ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ? 'true' : 'false' ) ),
     286                'parent' => 'edt-node',
     287            ]);
     288        }
     289
     290        $wp_admin_bar->add_node([
     291            'id'     => 'edt-php',
     292            'title'  => $this->html_label_value( 'PHP', phpversion() ),
     293            'parent' => 'edt-node',
     294        ]);
    311295    }
    312296
     
    318302    public function register_hooks() {
    319303        // Register backend styles.
    320         add_action( 'admin_enqueue_scripts', array( $this, 'register_backend_styles' ) );
     304        add_action( 'admin_enqueue_scripts', [ $this, 'register_backend_styles' ] );
    321305        // Register frontend styles.
    322         add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_styles' ) );
     306        add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_styles' ] );
    323307        // Register tranlations.
    324         add_action( 'init', array( $this, 'register_translations' ) );
     308        add_action( 'init', [ $this, 'register_translations' ] );
    325309        // Register toolbar.
    326         add_action( 'admin_bar_menu', array( $this, 'register_toolbar' ), 300, 1 );
     310        add_action( 'admin_bar_menu', [ $this, 'register_toolbar' ], 300, 1 );
    327311    }
    328312}
  • environment-debug-admin-toolbar/trunk/languages/environment-debug-admin-toolbar.pot

    r2911781 r2934357  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Environment & Debug Bar 1.2.0\n"
     5"Project-Id-Version: Environment & Debug Bar 1.2.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/environment-debug-admin-toolbar\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-05-12T19:58:56+00:00\n"
     12"POT-Creation-Date: 2023-07-05T09:33:34+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.8.0-alpha-04d5fdd\n"
     
    5151msgstr ""
    5252
    53 #: environment-debug-admin-toolbar.php:253
     53#: environment-debug-admin-toolbar.php:250
    5454msgid "Your env is set to:"
    5555msgstr ""
  • environment-debug-admin-toolbar/trunk/readme.txt

    r2911781 r2934357  
    33Tags: environment, env, debug, staging, production
    44Requires at least: 5.5
    5 Tested up to: 6.2
    6 Stable tag: 1.2.0
     5Tested up to: 6.3
     6Stable tag: 1.2.1
    77License: GPLv3
    88
     
    9292== Changelog ==
    9393
     94= 1.2.1 =
     95* Checked compatibility with WP 6.3.
     96* Fixed showing an incomplete title.
     97
    9498= 1.2.0 =
    9599* Added bar to the frontend behind a filter.
Note: See TracChangeset for help on using the changeset viewer.