diff --git wp-admin/includes/theme.php wp-admin/includes/theme.php
index 43cb8cf..8ee8915 100644
|
|
function get_theme_feature_list( $api = true ) { |
271 | 271 | * @return mixed |
272 | 272 | */ |
273 | 273 | function themes_api($action, $args = null) { |
| 274 | global $wp_version; |
274 | 275 | |
275 | 276 | if ( is_array($args) ) |
276 | 277 | $args = (object)$args; |
… |
… |
function themes_api($action, $args = null) { |
292 | 293 | } |
293 | 294 | } |
294 | 295 | |
| 296 | if ( isset( $res->requires ) && version_compare( $wp_version, $res->requires, '<' ) ) { |
| 297 | $res = new WP_Error('themes_api_failed', sprintf( __('The theme %s requires WordPress %s or higher. Please <a href="%s">update WordPress</a>.'), '<strong>' . $res->name . '</strong>', $res->requires, network_admin_url('update-core.php') ) ); |
| 298 | } |
| 299 | |
295 | 300 | return apply_filters('themes_api_result', $res, $action, $args); |
296 | 301 | } |