Use esc_js on the javascript part

This commit is contained in:
Boro Sitnikovski 2018-06-05 14:14:01 +02:00
parent 3f702999c2
commit ddd764f2a5
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class WC_Beta_Tester_Admin_Menus {
'href' => '#',
'meta' => array(
// We can't simply use the href here since WP core calls esc_url on it which strips some parts.
'onclick' => 'javascript:window.open( "' . $this->get_github_ticket_url() . '" );',
'onclick' => 'javascript:window.open( "' . esc_js( $this->get_github_ticket_url() ) . '" );',
),
),
array(