Changeset 38459 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r38325 r38459 424 424 * 425 425 * @global string $tab 426 * @global string $wp_version427 426 */ 428 427 function install_plugin_information() { … … 631 630 <div id="section-holder" class="wrap"> 632 631 <?php 633 if ( ! empty( $api->tested ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { 632 $wp_version = get_bloginfo( 'version' ); 633 634 if ( ! empty( $api->tested ) && version_compare( substr( $wp_version, 0, strlen( $api->tested ) ), $api->tested, '>' ) ) { 634 635 echo '<div class="notice notice-warning notice-alt"><p>' . __( '<strong>Warning:</strong> This plugin has <strong>not been tested</strong> with your current version of WordPress.' ) . '</p></div>'; 635 } elseif ( ! empty( $api->requires ) && version_compare( substr( $ GLOBALS['wp_version'], 0, strlen( $api->requires ) ), $api->requires, '<' ) ) {636 } elseif ( ! empty( $api->requires ) && version_compare( substr( $wp_version, 0, strlen( $api->requires ) ), $api->requires, '<' ) ) { 636 637 echo '<div class="notice notice-warning notice-alt"><p>' . __( '<strong>Warning:</strong> This plugin has <strong>not been marked as compatible</strong> with your version of WordPress.' ) . '</p></div>'; 637 638 }
Note: See TracChangeset
for help on using the changeset viewer.