Skip to content

Commit 88c4b1c

Browse files
authored
Add screenshot to valid theme properties during sanitization (#643)
1 parent ca08514 commit 88c4b1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

includes/class-create-block-theme-api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ private function sanitize_theme_data( $theme ) {
490490
$sanitized_theme['tags_custom'] = sanitize_text_field( $theme['tags_custom'] ?? '' );
491491
$sanitized_theme['subfolder'] = sanitize_text_field( $theme['subfolder'] ?? '' );
492492
$sanitized_theme['version'] = sanitize_text_field( $theme['version'] ?? '' );
493+
$sanitized_theme['screenshot'] = sanitize_text_field( $theme['screenshot'] ?? '' );
493494
$sanitized_theme['recommended_plugins'] = sanitize_textarea_field( $theme['recommended_plugins'] ?? '' );
494495
$sanitized_theme['template'] = '';
495496
$sanitized_theme['slug'] = sanitize_title( $theme['name'] );

0 commit comments

Comments
 (0)