- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r38307 r38459 70 70 * @global string $type 71 71 * @global string $term 72 * @global string $wp_version73 72 */ 74 73 public function prepare_items() { … … 89 88 $tabs['search'] = __( 'Search Results' ); 90 89 } 91 if ( $tab === 'beta' || false !== strpos( $GLOBALS['wp_version'], '-' ) ) {90 if ( $tab === 'beta' || false !== strpos( get_bloginfo( 'version' ), '-' ) ) { 92 91 $tabs['beta'] = _x( 'Beta Testing', 'Plugin Installer' ); 93 92 } … … 392 391 } 393 392 394 /**395 * @global string $wp_version396 */397 393 public function display_rows() { 398 394 $plugins_allowedtags = array( … … 575 571 <div class="column-compatibility"> 576 572 <?php 577 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $GLOBALS['wp_version'], 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 573 $wp_version = get_bloginfo( 'version' ); 574 575 if ( ! empty( $plugin['tested'] ) && version_compare( substr( $wp_version, 0, strlen( $plugin['tested'] ) ), $plugin['tested'], '>' ) ) { 578 576 echo '<span class="compatibility-untested">' . __( 'Untested with your version of WordPress' ) . '</span>'; 579 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $ GLOBALS['wp_version'], 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) {577 } elseif ( ! empty( $plugin['requires'] ) && version_compare( substr( $wp_version, 0, strlen( $plugin['requires'] ) ), $plugin['requires'], '<' ) ) { 580 578 echo '<span class="compatibility-incompatible">' . __( '<strong>Incompatible</strong> with your version of WordPress' ) . '</span>'; 581 579 } else {
Note: See TracChangeset
for help on using the changeset viewer.