Skip to content

Commit

Permalink
Add screenshot to valid theme properties during sanitization (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking authored May 16, 2024
1 parent ca08514 commit 88c4b1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/class-create-block-theme-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ private function sanitize_theme_data( $theme ) {
$sanitized_theme['tags_custom'] = sanitize_text_field( $theme['tags_custom'] ?? '' );
$sanitized_theme['subfolder'] = sanitize_text_field( $theme['subfolder'] ?? '' );
$sanitized_theme['version'] = sanitize_text_field( $theme['version'] ?? '' );
$sanitized_theme['screenshot'] = sanitize_text_field( $theme['screenshot'] ?? '' );
$sanitized_theme['recommended_plugins'] = sanitize_textarea_field( $theme['recommended_plugins'] ?? '' );
$sanitized_theme['template'] = '';
$sanitized_theme['slug'] = sanitize_title( $theme['name'] );
Expand Down

0 comments on commit 88c4b1c

Please sign in to comment.