Skip to content

Commit

Permalink
Escape inline css
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfusco committed Sep 23, 2024
1 parent 2b39920 commit d35cd08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wpgraphql-ide.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function enqueue_graphql_ide_menu_icon_css(): void {
}
';

wp_add_inline_style( 'admin-bar', $custom_css );
wp_add_inline_style( 'admin-bar', esc_html( $custom_css ) );
}

/**
Expand Down Expand Up @@ -558,7 +558,7 @@ function graphql_admin_notices_render_notices( array $notices ): void {
// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.MissingVersion
wp_register_style( 'wpgraphql-ide-admin-notices', false );
wp_enqueue_style( 'wpgraphql-ide-admin-notices' );
wp_add_inline_style( 'wpgraphql-ide-admin-notices', $custom_css );
wp_add_inline_style( 'wpgraphql-ide-admin-notices', esc_html( $custom_css ) );
}

/**
Expand Down

0 comments on commit d35cd08

Please sign in to comment.