Skip to content

Commit

Permalink
Escape the things
Browse files Browse the repository at this point in the history
  • Loading branch information
josephfusco committed Sep 9, 2024
1 parent ac4f65c commit 38d305f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions wpgraphql-ide.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function register_wpadminbar_menus(): void {
$wp_admin_bar->add_node(
[
'id' => 'wpgraphql-ide',
'title' => '<div id="' . esc_attr( WPGRAPHQL_IDE_ROOT_ELEMENT_ID ) . '"><span class="ab-icon"></span>' . $app_context['drawerButtonLabel'] . '</div>',
'title' => '<div id="' . esc_attr( WPGRAPHQL_IDE_ROOT_ELEMENT_ID ) . '"><span class="ab-icon"></span>' . esc_html( $app_context['drawerButtonLabel'] ) . '</div>',
'href' => '#',
]
);
Expand All @@ -262,8 +262,8 @@ function register_wpadminbar_menus(): void {
$wp_admin_bar->add_node(
[
'id' => 'wpgraphql-ide',
'title' => '<span class="ab-icon"></span>' . $app_context['drawerButtonLabel'],
'href' => admin_url( 'admin.php?page=graphql-ide' ),
'title' => '<span class="ab-icon"></span>' . esc_html( $app_context['drawerButtonLabel'] ),
'href' => esc_url( admin_url( 'admin.php?page=graphql-ide' ) ),
]
);
}
Expand All @@ -290,8 +290,8 @@ function register_dedicated_ide_menu(): void {

add_submenu_page(
'graphiql-ide',
__( 'GraphQL IDE', 'wpgraphql-ide' ),
__( 'GraphQL IDE', 'wpgraphql-ide' ),
esc_html__( 'GraphQL IDE', 'wpgraphql-ide' ),
esc_html__( 'GraphQL IDE', 'wpgraphql-ide' ),
'manage_graphql_ide',
'graphql-ide',
__NAMESPACE__ . '\\render_dedicated_ide_page'
Expand Down

0 comments on commit 38d305f

Please sign in to comment.