- Timestamp:
- 07/12/2020 07:59:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-plugin-installer-skin.php
r48448 r48453 218 218 219 219 foreach ( $rows as $field => $label ) { 220 $old_value = ! empty( $current_plugin_data[ $field ] ) ? $current_plugin_data[ $field ] : '-';221 $new_value = ! empty( $this->upgrader->new_plugin_data[ $field ] ) ? $this->upgrader->new_plugin_data[ $field ] : '-';220 $old_value = ! empty( $current_plugin_data[ $field ] ) ? (string) $current_plugin_data[ $field ] : '-'; 221 $new_value = ! empty( $this->upgrader->new_plugin_data[ $field ] ) ? (string) $this->upgrader->new_plugin_data[ $field ] : '-'; 222 222 223 223 $is_same_plugin = $is_same_plugin && ( $old_value === $new_value ); … … 226 226 $diff_version = ( 'Version' === $field && $this->is_downgrading ); 227 227 228 $table .= '<tr><td class="name-label">' . $label . '</td><td>' . esc_html( $old_value ) . '</td>';228 $table .= '<tr><td class="name-label">' . $label . '</td><td>' . wp_strip_all_tags( $old_value ) . '</td>'; 229 229 $table .= ( $diff_field || $diff_version ) ? '<td class="warning">' : '<td>'; 230 $table .= esc_html( $new_value ) . '</td></tr>';230 $table .= wp_strip_all_tags( $new_value ) . '</td></tr>'; 231 231 } 232 232
Note: See TracChangeset
for help on using the changeset viewer.