diff --git a/.gitignore b/.gitignore index bd963620..092343f3 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ vendor/ # ignore system files .DS_Store +.vscode # plugin build folder build/ diff --git a/admin/create-theme/form-messages.php b/admin/create-theme/form-messages.php index d7a76758..bb94e070 100644 --- a/admin/create-theme/form-messages.php +++ b/admin/create-theme/form-messages.php @@ -41,7 +41,7 @@ public static function admin_notice_blank_success() { printf( // translators: %1$s: Theme name esc_html__( 'Blank theme created, head over to Appearance > Themes to activate %1$s', 'create-block-theme' ), - esc_html( $theme_name ) + esc_html( stripslashes( $theme_name ) ) ); ?>

diff --git a/admin/create-theme/theme-styles.php b/admin/create-theme/theme-styles.php index 9d28e3bd..5ee5eb89 100644 --- a/admin/create-theme/theme-styles.php +++ b/admin/create-theme/theme-styles.php @@ -8,10 +8,10 @@ class Theme_Styles { */ public static function build_child_style_css( $theme ) { $slug = $theme['slug']; - $name = $theme['name']; - $description = $theme['description']; + $name = stripslashes( $theme['name'] ); + $description = stripslashes( $theme['description'] ); $uri = $theme['uri']; - $author = $theme['author']; + $author = stripslashes( $theme['author'] ); $author_uri = $theme['author_uri']; $wp_version = get_bloginfo( 'version' ); $template = $theme['template'];