Changeset 3267781
- Timestamp:
- 04/07/2025 10:41:07 AM (11 months ago)
- Location:
- display-environment-type
- Files:
-
- 8 edited
- 1 copied
-
tags/1.4.0 (copied) (copied from display-environment-type/trunk)
-
tags/1.4.0/classes/class-display-environment-type.php (modified) (4 diffs)
-
tags/1.4.0/css/admin.css (modified) (3 diffs)
-
tags/1.4.0/display-environment-type.php (modified) (3 diffs)
-
tags/1.4.0/readme.txt (modified) (2 diffs)
-
trunk/classes/class-display-environment-type.php (modified) (4 diffs)
-
trunk/css/admin.css (modified) (3 diffs)
-
trunk/display-environment-type.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
display-environment-type/tags/1.4.0/classes/class-display-environment-type.php
r3266750 r3267781 91 91 * @param string $env_type The environment type key. 92 92 */ 93 return apply_filters( 'display_environment_type_name', $name, $env_type );93 return \apply_filters( 'display_environment_type_name', $name, $env_type ); 94 94 } 95 95 … … 108 108 109 109 if ( ! empty( $env_type ) ) { 110 $items[] = '<span class="' . \esc_attr( 'det-env-type det-' . $env_type ) . '" title="' . esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . \esc_html( $env_type_name ) . '</span>';110 $items[] = '<span class="' . \esc_attr( 'det-env-type det-' . $env_type ) . '" title="' . \esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . \esc_html( $env_type_name ) . '</span>'; 111 111 } 112 112 … … 132 132 'id' => 'det_env_type', 133 133 'parent' => 'top-secondary', 134 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . esc_html( $env_type_name ) . '</span>',134 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . \esc_html( $env_type_name ) . '</span>', 135 135 'meta' => array( 136 136 'class' => 'det-' . \sanitize_title( $env_type ), … … 201 201 $admin_bar->add_node( 202 202 array( 203 'id' => 'det-wp', 204 'title' => self::show_label_value( 'WP', \get_bloginfo( 'version', 'display' ) ), 205 'parent' => 'det_env_type', 206 ) 207 ); 208 209 $admin_bar->add_node( 210 array( 203 211 'id' => 'det-php', 204 212 'title' => self::show_label_value( 'PHP', phpversion() ), -
display-environment-type/tags/1.4.0/css/admin.css
r3266743 r3267781 50 50 } 51 51 52 /* PRODUCTION */ 52 53 #wpadminbar ul li#wp-admin-bar-det_env_type.det-production { 53 54 background-color: #b92a2a; 54 55 } 55 56 57 #dashboard_right_now li>span.det-env-type.det-production, #dashboard_right_now li>span.det-env-type.det-production::before { 58 color: #b92a2a; 59 } 60 61 /* STAGING */ 56 62 #wpadminbar ul li#wp-admin-bar-det_env_type.det-staging { 57 63 background-color: #d79d00; … … 59 65 } 60 66 67 #dashboard_right_now li>span.det-env-type.det-staging, #dashboard_right_now li>span.det-env-type.det-staging::before { 68 color: #d79d00; 69 } 70 71 /* DEVELOPMENT */ 61 72 #wpadminbar ul li#wp-admin-bar-det_env_type.det-development { 62 73 background-color: #34863b; 74 } 75 76 #dashboard_right_now li>span.det-env-type.det-development, #dashboard_right_now li>span.det-env-type.det-development::before { 77 color: #34863b; 63 78 } 64 79 … … 85 100 top: 2px; 86 101 } 102 103 @media screen and (max-width: 782px) { 104 #wpadminbar li#wp-admin-bar-det_env_type { 105 display: block; 106 position: static; 107 } 108 } -
display-environment-type/tags/1.4.0/display-environment-type.php
r3266743 r3267781 4 4 * Plugin URI: https://roytanck.com/2020/08/21/new-wordpress-plugin-display-environment-type/ 5 5 * Description: Display the site's environment type in wp-admin. 6 * Version: 1. 3.56 * Version: 1.4.0 7 7 * Requires at least: 5.5 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'DET_VERSION', '1. 3.5' );20 define( 'DET_VERSION', '1.4.0' ); 21 21 define( 'DET_TEXTDOMAIN', 'display-environment-type' ); 22 22 define( 'DET_NAME', 'Display Environment Type' ); … … 33 33 'admin_init', 34 34 static function () { 35 deactivate_plugins( plugin_basename( __FILE__ ));35 deactivate_plugins( DET_PLUGIN_BASENAME ); 36 36 } 37 37 ); -
display-environment-type/tags/1.4.0/readme.txt
r3266743 r3267781 3 3 Tags: environment, dtap, production, staging, development 4 4 Requires at least: 5.5 5 Tested up to: 6.7 6 Requires PHP: 5.67 Stable tag: 1. 3.55 Tested up to: 6.7.2 6 Requires PHP: 7.4 7 Stable tag: 1.4.0 8 8 License: GPLv3 9 9 … … 52 52 == Changelog == 53 53 54 = 1.3.5 (2024-12-20) = 54 = 1.4.0 (2024-03-07) = 55 * Code improvements and UI fixes - showing icon on mobile, and set colors on At a Glance. Added WP version in drop-down menu. 56 57 = 1.3.5 (2025-03-04) = 55 58 * Added a drop-down submenu with WP constants and their values (enabled / disabled). 56 59 -
display-environment-type/trunk/classes/class-display-environment-type.php
r3266750 r3267781 91 91 * @param string $env_type The environment type key. 92 92 */ 93 return apply_filters( 'display_environment_type_name', $name, $env_type );93 return \apply_filters( 'display_environment_type_name', $name, $env_type ); 94 94 } 95 95 … … 108 108 109 109 if ( ! empty( $env_type ) ) { 110 $items[] = '<span class="' . \esc_attr( 'det-env-type det-' . $env_type ) . '" title="' . esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . \esc_html( $env_type_name ) . '</span>';110 $items[] = '<span class="' . \esc_attr( 'det-env-type det-' . $env_type ) . '" title="' . \esc_attr__( 'Environment Type', 'display-environment-type' ) . '">' . \esc_html( $env_type_name ) . '</span>'; 111 111 } 112 112 … … 132 132 'id' => 'det_env_type', 133 133 'parent' => 'top-secondary', 134 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . esc_html( $env_type_name ) . '</span>',134 'title' => '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . \esc_html( $env_type_name ) . '</span>', 135 135 'meta' => array( 136 136 'class' => 'det-' . \sanitize_title( $env_type ), … … 201 201 $admin_bar->add_node( 202 202 array( 203 'id' => 'det-wp', 204 'title' => self::show_label_value( 'WP', \get_bloginfo( 'version', 'display' ) ), 205 'parent' => 'det_env_type', 206 ) 207 ); 208 209 $admin_bar->add_node( 210 array( 203 211 'id' => 'det-php', 204 212 'title' => self::show_label_value( 'PHP', phpversion() ), -
display-environment-type/trunk/css/admin.css
r3266743 r3267781 50 50 } 51 51 52 /* PRODUCTION */ 52 53 #wpadminbar ul li#wp-admin-bar-det_env_type.det-production { 53 54 background-color: #b92a2a; 54 55 } 55 56 57 #dashboard_right_now li>span.det-env-type.det-production, #dashboard_right_now li>span.det-env-type.det-production::before { 58 color: #b92a2a; 59 } 60 61 /* STAGING */ 56 62 #wpadminbar ul li#wp-admin-bar-det_env_type.det-staging { 57 63 background-color: #d79d00; … … 59 65 } 60 66 67 #dashboard_right_now li>span.det-env-type.det-staging, #dashboard_right_now li>span.det-env-type.det-staging::before { 68 color: #d79d00; 69 } 70 71 /* DEVELOPMENT */ 61 72 #wpadminbar ul li#wp-admin-bar-det_env_type.det-development { 62 73 background-color: #34863b; 74 } 75 76 #dashboard_right_now li>span.det-env-type.det-development, #dashboard_right_now li>span.det-env-type.det-development::before { 77 color: #34863b; 63 78 } 64 79 … … 85 100 top: 2px; 86 101 } 102 103 @media screen and (max-width: 782px) { 104 #wpadminbar li#wp-admin-bar-det_env_type { 105 display: block; 106 position: static; 107 } 108 } -
display-environment-type/trunk/display-environment-type.php
r3266743 r3267781 4 4 * Plugin URI: https://roytanck.com/2020/08/21/new-wordpress-plugin-display-environment-type/ 5 5 * Description: Display the site's environment type in wp-admin. 6 * Version: 1. 3.56 * Version: 1.4.0 7 7 * Requires at least: 5.5 8 8 * Requires PHP: 7.4 … … 18 18 defined( 'ABSPATH' ) || exit; 19 19 20 define( 'DET_VERSION', '1. 3.5' );20 define( 'DET_VERSION', '1.4.0' ); 21 21 define( 'DET_TEXTDOMAIN', 'display-environment-type' ); 22 22 define( 'DET_NAME', 'Display Environment Type' ); … … 33 33 'admin_init', 34 34 static function () { 35 deactivate_plugins( plugin_basename( __FILE__ ));35 deactivate_plugins( DET_PLUGIN_BASENAME ); 36 36 } 37 37 ); -
display-environment-type/trunk/readme.txt
r3266743 r3267781 3 3 Tags: environment, dtap, production, staging, development 4 4 Requires at least: 5.5 5 Tested up to: 6.7 6 Requires PHP: 5.67 Stable tag: 1. 3.55 Tested up to: 6.7.2 6 Requires PHP: 7.4 7 Stable tag: 1.4.0 8 8 License: GPLv3 9 9 … … 52 52 == Changelog == 53 53 54 = 1.3.5 (2024-12-20) = 54 = 1.4.0 (2024-03-07) = 55 * Code improvements and UI fixes - showing icon on mobile, and set colors on At a Glance. Added WP version in drop-down menu. 56 57 = 1.3.5 (2025-03-04) = 55 58 * Added a drop-down submenu with WP constants and their values (enabled / disabled). 56 59
Note: See TracChangeset
for help on using the changeset viewer.