Amaury Balmer
Forum Replies Created
-
Or add a function like this to your plugin
if ( !function_exists('wp_get_environment_type') ) : function wp_get_environment_type() { static $current_env = ''; if ( ! defined( 'WP_RUN_CORE_TESTS' ) && $current_env ) { return $current_env; } $wp_environments = array( 'local', 'development', 'staging', 'production', ); // Add a note about the deprecated WP_ENVIRONMENT_TYPES constant. if ( defined( 'WP_ENVIRONMENT_TYPES' ) && function_exists( '_deprecated_argument' ) ) { if ( function_exists( '__' ) ) { /* translators: %s: WP_ENVIRONMENT_TYPES */ $message = sprintf( __( 'The %s constant is no longer supported.' ), 'WP_ENVIRONMENT_TYPES' ); } else { $message = sprintf( 'The %s constant is no longer supported.', 'WP_ENVIRONMENT_TYPES' ); } _deprecated_argument( 'define()', '5.5.1', $message ); } // Check if the environment variable has been set, ifgetenvis available on the system. if ( function_exists( 'getenv' ) ) { $has_env = getenv( 'WP_ENVIRONMENT_TYPE' ); if ( false !== $has_env ) { $current_env = $has_env; } } // Fetch the environment from a constant, this overrides the global system variable. if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) { $current_env = WP_ENVIRONMENT_TYPE; } // Make sure the environment is an allowed one, and not accidentally set to an invalid value. if ( ! in_array( $current_env, $wp_environments, true ) ) { $current_env = 'production'; } return $current_env; } endif;Fine !
The version which contains the patch for WP 5.3 / Classic editor is 2.5.6.
I had to create a 2.5.7 tag because of the changes on the Github actions which allow to make the automatic release on WP.org.
@roxchou what is the error encountered?
Fine !
Hey,
You can try the latest version 2.5.7 :
https://wordpress.org/plugins/simple-tags/Hey,
You can try the latest version 2.5.7 :
https://wordpress.org/plugins/simple-tags/I failed to reproduce the bug. Can you try the version of Github with this patch?
https://github.com/BeAPI/simple-tags/commit/6af0e8ca4e64461a1ea206aab95c6a28aba12081Hey,
Thanks for report.
I fix it on this commit :
https://github.com/BeAPI/simple-tags/commit/aee9090c63519e58fc2b5b535e21bbe867d478d0I will release this change on next version.
Thanks Jean-Christophe for this very nice report.
Fixed on latest version :
https://github.com/BeAPI/simple-tags/commit/08b8b25827b4ee8dc35787d8ebfb48a6cd6bdc9fHello,
Can you tell me what your functional needs are with CPT customs?
Solved with 2.5.3 ?
Thanks, fixed on 2.5.4
Proposes this feature addition in the Github project?
Fixed on latest version.