- Timestamp:
- 07/12/2020 10:53:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r48447 r48448 238 238 $table .= '<tr><th></th><th>' . esc_html( __( 'Current' ) ) . '</th><th>' . esc_html( __( 'Uploaded' ) ) . '</th></tr>'; 239 239 240 $is_same_theme = true; // Let's consider only these rows 240 $is_same_theme = true; // Let's consider only these rows. 241 241 242 foreach ( $rows as $field => $label ) { 242 243 $old_value = $current_theme_data->display( $field, false ); … … 284 285 $blocked_message .= '<ul class="ul-disc">'; 285 286 286 if ( ! empty( $this->upgrader->new_theme_data['RequiresPHP'] ) && version_compare( phpversion(), $this->upgrader->new_theme_data['RequiresPHP'], '<' ) ) { 287 if ( ! empty( $this->upgrader->new_theme_data['RequiresPHP'] ) 288 && ! is_php_version_compatible( $this->upgrader->new_theme_data['RequiresPHP'] ) 289 ) { 287 290 $error = sprintf( 288 291 /* translators: 1: Current PHP version, 2: Version required by the uploaded theme. */ … … 296 299 } 297 300 298 if ( ! empty( $this->upgrader->new_theme_data['RequiresWP'] ) && version_compare( $GLOBALS['wp_version'], $this->upgrader->new_theme_data['RequiresWP'], '<' ) ) { 301 if ( ! empty( $this->upgrader->new_theme_data['RequiresWP'] ) 302 && ! is_wp_version_compatible( $this->upgrader->new_theme_data['RequiresWP'] ) 303 ) { 299 304 $error = sprintf( 300 305 /* translators: 1: Current WordPress version, 2: Version required by the uploaded theme. */
Note: See TracChangeset
for help on using the changeset viewer.