- Timestamp:
- 07/12/2020 10:53:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r48447 r48448 215 215 $table .= '<th>' . esc_html( __( 'Uploaded' ) ) . '</th></tr>'; 216 216 217 $is_same_plugin = true; // Let's consider only these rows 217 $is_same_plugin = true; // Let's consider only these rows. 218 218 219 foreach ( $rows as $field => $label ) { 219 220 $old_value = ! empty( $current_plugin_data[ $field ] ) ? $current_plugin_data[ $field ] : '-'; … … 249 250 $blocked_message .= '<ul class="ul-disc">'; 250 251 251 if ( 252 ! empty( $this->upgrader->new_plugin_data['RequiresPHP'] ) && 253 version_compare( phpversion(), $this->upgrader->new_plugin_data['RequiresPHP'], '<' ) 252 if ( ! empty( $this->upgrader->new_plugin_data['RequiresPHP'] ) 253 && ! is_php_version_compatible( $this->upgrader->new_plugin_data['RequiresPHP'] ) 254 254 ) { 255 255 $error = sprintf( … … 264 264 } 265 265 266 if ( 267 ! empty( $this->upgrader->new_plugin_data['RequiresWP'] ) && 268 version_compare( $GLOBALS['wp_version'], $this->upgrader->new_plugin_data['RequiresWP'], '<' ) 266 if ( ! empty( $this->upgrader->new_plugin_data['RequiresWP'] ) 267 && ! is_wp_version_compatible( $this->upgrader->new_plugin_data['RequiresWP'] ) 269 268 ) { 270 269 $error = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.