diff --git a/admin/create-theme/theme-patterns.php b/admin/create-theme/theme-patterns.php index dafde8af..2f564d89 100644 --- a/admin/create-theme/theme-patterns.php +++ b/admin/create-theme/theme-patterns.php @@ -58,7 +58,8 @@ public static function escape_alt_for_pattern( $html ) { static function escape_text_for_pattern( $text ) { if ( $text && trim( $text ) !== '' ) { - return "get( 'Name' ) . "' ); ?>"; + $escaped_text = addslashes( $text ); + return "get( 'Name' ) . "' ); ?>"; } }