Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip escaping characters before printing stylesheet #337

Merged
merged 3 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ vendor/

# ignore system files
.DS_Store
.vscode

# plugin build folder
build/
2 changes: 1 addition & 1 deletion admin/create-theme/form-messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
);
?>
</p>
Expand Down
6 changes: 3 additions & 3 deletions admin/create-theme/theme-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down