mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-11 16:14:32 +00:00
Plugins: Remove wp_is_wp_compatible() and wp_is_php_compatible() functions added in [44978] for now, to discuss use cases and better naming.
See #46599, #43992. git-svn-id: https://develop.svn.wordpress.org/trunk@44981 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1090,8 +1090,8 @@ function validate_plugin_requirements( $plugin ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$plugin_data['wp_compatible'] = wp_is_wp_compatible( $plugin_data['requires'] );
|
||||
$plugin_data['php_compatible'] = wp_is_php_compatible( $plugin_data['requires_php'] );
|
||||
$plugin_data['wp_compatible'] = version_compare( get_bloginfo( 'version' ), $plugin_data['requires'], '>=' );
|
||||
$plugin_data['php_compatible'] = version_compare( phpversion(), $plugin_data['requires_php'], '>=' );
|
||||
|
||||
$plugin_data = array_merge( $plugin_data, get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user