- Timestamp:
- 07/12/2020 07:59:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-theme-installer-skin.php
r48448 r48453 242 242 foreach ( $rows as $field => $label ) { 243 243 $old_value = $current_theme_data->display( $field, false ); 244 $old_value = $old_value ? $old_value : '-';245 246 $new_value = ! empty( $this->upgrader->new_theme_data[ $field ] ) ? $this->upgrader->new_theme_data[ $field ] : '-';244 $old_value = $old_value ? (string) $old_value : '-'; 245 246 $new_value = ! empty( $this->upgrader->new_theme_data[ $field ] ) ? (string) $this->upgrader->new_theme_data[ $field ] : '-'; 247 247 248 248 if ( $old_value === $new_value && '-' === $new_value && 'Template' === $field ) { … … 261 261 } 262 262 263 $table .= '<tr><td class="name-label">' . $label . '</td><td>' . esc_html( $old_value ) . '</td>';263 $table .= '<tr><td class="name-label">' . $label . '</td><td>' . wp_strip_all_tags( $old_value ) . '</td>'; 264 264 $table .= ( $diff_field || $diff_version || $invalid_parent ) ? '<td class="warning">' : '<td>'; 265 $table .= esc_html( $new_value ) . '</td></tr>';265 $table .= wp_strip_all_tags( $new_value ) . '</td></tr>'; 266 266 } 267 267
Note: See TracChangeset
for help on using the changeset viewer.