Changeset 2934357
- Timestamp:
- 07/05/2023 09:43:01 AM (3 years ago)
- Location:
- environment-debug-admin-toolbar
- Files:
-
- 8 edited
- 1 copied
-
tags/1.2.1 (copied) (copied from environment-debug-admin-toolbar/trunk)
-
tags/1.2.1/changelog.txt (modified) (1 diff)
-
tags/1.2.1/environment-debug-admin-toolbar.php (modified) (10 diffs)
-
tags/1.2.1/languages/environment-debug-admin-toolbar.pot (modified) (3 diffs)
-
tags/1.2.1/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/environment-debug-admin-toolbar.php (modified) (10 diffs)
-
trunk/languages/environment-debug-admin-toolbar.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
environment-debug-admin-toolbar/tags/1.2.1/changelog.txt
r2911781 r2934357 1 2023.07.05 - version 1.2.1 2 * Checked compatibility with WP 6.3. 3 * Fixed showing an incomplete title. 4 1 5 2023.05.12 - version 1.2.0 2 6 * Added bar to the frontend behind a filter. -
environment-debug-admin-toolbar/tags/1.2.1/environment-debug-admin-toolbar.php
r2911781 r2934357 14 14 * Plugin Name: Environment & Debug Bar 15 15 * Description: Display your environment and debug info in the toolbar. 16 * Version: 1.2. 016 * Version: 1.2.1 17 17 * Requires at least: 5.5 18 18 * Requires PHP: 7.4 … … 30 30 define( 'EDT_BASENAME', plugin_basename( EDT_FILE ) ); 31 31 32 define( 'EDT_VERSION', '1.2. 0' );32 define( 'EDT_VERSION', '1.2.1' ); 33 33 34 34 /** … … 83 83 $env_development = apply_filters( 84 84 'edt_env_development', 85 array(85 [ 86 86 'development', 87 87 'develop', 88 88 'dev', 89 89 'local', 90 )90 ] 91 91 ); 92 92 … … 97 97 $env_staging = apply_filters( 98 98 'edt_env_staging', 99 array(99 [ 100 100 'staging', 101 101 'stage', … … 105 105 'accept', 106 106 'integration', 107 )107 ] 108 108 ); 109 109 … … 114 114 $env_production = apply_filters( 115 115 'edt_env_production', 116 array(116 [ 117 117 'production', 118 118 'prod', 119 119 'live', 120 )120 ] 121 121 ); 122 122 … … 178 178 'edt-backend-css', // Name. 179 179 plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL. 180 array(), // Deps.180 [], // Deps. 181 181 EDT_VERSION, // Version. 182 182 'all' // Media. … … 200 200 'edt-frontend-css', // Name. 201 201 plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL. 202 array(), // Deps.202 [], // Deps. 203 203 EDT_VERSION, // Version. 204 204 'all' // Media. … … 239 239 $type_name = $this->env_type_label( $type_id ); 240 240 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' ) ), 263 265 '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' ) ), 308 274 '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 ]); 311 295 } 312 296 … … 318 302 public function register_hooks() { 319 303 // Register backend styles. 320 add_action( 'admin_enqueue_scripts', array( $this, 'register_backend_styles' ));304 add_action( 'admin_enqueue_scripts', [ $this, 'register_backend_styles' ] ); 321 305 // Register frontend styles. 322 add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_styles' ));306 add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_styles' ] ); 323 307 // Register tranlations. 324 add_action( 'init', array( $this, 'register_translations' ));308 add_action( 'init', [ $this, 'register_translations' ] ); 325 309 // 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 ); 327 311 } 328 312 } -
environment-debug-admin-toolbar/tags/1.2.1/languages/environment-debug-admin-toolbar.pot
r2911781 r2934357 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Environment & Debug Bar 1.2. 0\n"5 "Project-Id-Version: Environment & Debug Bar 1.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/environment-debug-admin-toolbar\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-0 5-12T19:58:56+00:00\n"12 "POT-Creation-Date: 2023-07-05T09:33:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.0-alpha-04d5fdd\n" … … 51 51 msgstr "" 52 52 53 #: environment-debug-admin-toolbar.php:25 353 #: environment-debug-admin-toolbar.php:250 54 54 msgid "Your env is set to:" 55 55 msgstr "" -
environment-debug-admin-toolbar/tags/1.2.1/readme.txt
r2911781 r2934357 3 3 Tags: environment, env, debug, staging, production 4 4 Requires at least: 5.5 5 Tested up to: 6. 26 Stable tag: 1.2. 05 Tested up to: 6.3 6 Stable tag: 1.2.1 7 7 License: GPLv3 8 8 … … 92 92 == Changelog == 93 93 94 = 1.2.1 = 95 * Checked compatibility with WP 6.3. 96 * Fixed showing an incomplete title. 97 94 98 = 1.2.0 = 95 99 * Added bar to the frontend behind a filter. -
environment-debug-admin-toolbar/trunk/changelog.txt
r2911781 r2934357 1 2023.07.05 - version 1.2.1 2 * Checked compatibility with WP 6.3. 3 * Fixed showing an incomplete title. 4 1 5 2023.05.12 - version 1.2.0 2 6 * Added bar to the frontend behind a filter. -
environment-debug-admin-toolbar/trunk/environment-debug-admin-toolbar.php
r2911781 r2934357 14 14 * Plugin Name: Environment & Debug Bar 15 15 * Description: Display your environment and debug info in the toolbar. 16 * Version: 1.2. 016 * Version: 1.2.1 17 17 * Requires at least: 5.5 18 18 * Requires PHP: 7.4 … … 30 30 define( 'EDT_BASENAME', plugin_basename( EDT_FILE ) ); 31 31 32 define( 'EDT_VERSION', '1.2. 0' );32 define( 'EDT_VERSION', '1.2.1' ); 33 33 34 34 /** … … 83 83 $env_development = apply_filters( 84 84 'edt_env_development', 85 array(85 [ 86 86 'development', 87 87 'develop', 88 88 'dev', 89 89 'local', 90 )90 ] 91 91 ); 92 92 … … 97 97 $env_staging = apply_filters( 98 98 'edt_env_staging', 99 array(99 [ 100 100 'staging', 101 101 'stage', … … 105 105 'accept', 106 106 'integration', 107 )107 ] 108 108 ); 109 109 … … 114 114 $env_production = apply_filters( 115 115 'edt_env_production', 116 array(116 [ 117 117 'production', 118 118 'prod', 119 119 'live', 120 )120 ] 121 121 ); 122 122 … … 178 178 'edt-backend-css', // Name. 179 179 plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL. 180 array(), // Deps.180 [], // Deps. 181 181 EDT_VERSION, // Version. 182 182 'all' // Media. … … 200 200 'edt-frontend-css', // Name. 201 201 plugin_dir_url( EDT_FILE ) . 'assets/edt.min.css', // URL. 202 array(), // Deps.202 [], // Deps. 203 203 EDT_VERSION, // Version. 204 204 'all' // Media. … … 239 239 $type_name = $this->env_type_label( $type_id ); 240 240 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' ) ), 263 265 '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' ) ), 308 274 '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 ]); 311 295 } 312 296 … … 318 302 public function register_hooks() { 319 303 // Register backend styles. 320 add_action( 'admin_enqueue_scripts', array( $this, 'register_backend_styles' ));304 add_action( 'admin_enqueue_scripts', [ $this, 'register_backend_styles' ] ); 321 305 // Register frontend styles. 322 add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_styles' ));306 add_action( 'wp_enqueue_scripts', [ $this, 'register_frontend_styles' ] ); 323 307 // Register tranlations. 324 add_action( 'init', array( $this, 'register_translations' ));308 add_action( 'init', [ $this, 'register_translations' ] ); 325 309 // 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 ); 327 311 } 328 312 } -
environment-debug-admin-toolbar/trunk/languages/environment-debug-admin-toolbar.pot
r2911781 r2934357 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Environment & Debug Bar 1.2. 0\n"5 "Project-Id-Version: Environment & Debug Bar 1.2.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/environment-debug-admin-toolbar\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-0 5-12T19:58:56+00:00\n"12 "POT-Creation-Date: 2023-07-05T09:33:34+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.8.0-alpha-04d5fdd\n" … … 51 51 msgstr "" 52 52 53 #: environment-debug-admin-toolbar.php:25 353 #: environment-debug-admin-toolbar.php:250 54 54 msgid "Your env is set to:" 55 55 msgstr "" -
environment-debug-admin-toolbar/trunk/readme.txt
r2911781 r2934357 3 3 Tags: environment, env, debug, staging, production 4 4 Requires at least: 5.5 5 Tested up to: 6. 26 Stable tag: 1.2. 05 Tested up to: 6.3 6 Stable tag: 1.2.1 7 7 License: GPLv3 8 8 … … 92 92 == Changelog == 93 93 94 = 1.2.1 = 95 * Checked compatibility with WP 6.3. 96 * Fixed showing an incomplete title. 97 94 98 = 1.2.0 = 95 99 * Added bar to the frontend behind a filter.
Note: See TracChangeset
for help on using the changeset viewer.