Skip to content

Commit 57f094f

Browse files
committed
Put correct value for meta key and remove escaping where not required
Put the correct value for the 'meta key' of add_menu() and remove escaping from purge_url() on line 688 as already escaped at the end
1 parent 257be95 commit 57f094f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/class-nginx-helper-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public function nginx_helper_toolbar_purge_link( $wp_admin_bar ) {
223223
'id' => 'nginx-helper-purge-all',
224224
'title' => $link_title,
225225
'href' => $nonced_url,
226-
'meta' => array( 'title' => array( 'title' => $link_title ) ),
226+
'meta' => array( 'title' => $link_title ),
227227
)
228228
);
229229

@@ -685,7 +685,7 @@ public function purge_all() {
685685

686686
check_admin_referer( 'nginx_helper-purge_all' );
687687

688-
$current_url = esc_url_raw( user_trailingslashit( home_url( $wp->request ) ) );
688+
$current_url = user_trailingslashit( home_url( $wp->request ) );
689689

690690
if ( ! is_admin() ) {
691691
$action = 'purge_current_page';

0 commit comments

Comments
 (0)