Description
Check WordPress develop tests are compatible with WordPress installationAssumes that newer versions of the WordPress develop tests could be incompatible with older versions of WordPress core.
Usage
check_wordpress_develop_tests_version();Parameters
Returns
voidSource
File name: oik-batch/tests/bootstrap.phpLines:
1 to 10 of 10
function check_wordpress_develop_tests_version() { require_once( ABSPATH . "wp-admin/includes/plugin.php" ); $plugin_file = oik_path( "wordpress-develop-tests.php", "wordpress-develop-tests" ); $plugin_data = get_plugin_data( $plugin_file, false, false ); $wordpress_develop_tests_version = bw_array_get( $plugin_data, 'Version', null ); global $wp_version; if ( version_compare( $wp_version, $wordpress_develop_tests_version, "lt" ) ) { echo "Warning: potentially incompatible versions: WordPress: $wp_version, wordpress-develop-tests: $wordpress_develop_tests_version" . PHP_EOL; } }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
1 to 1 of 1
