File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,15 +118,22 @@ protected function adminBarMenu(WP_Admin_Bar $wp_admin_bar)
118118
119119 $ wp_admin_bar ->add_node ([
120120 'id ' => WpRestApiCache::ID ,
121- 'title ' => \esc_html__ ('REST API Cache ' , 'wp-rest-api-cache ' ),
121+ 'title ' => \sprintf (
122+ '<span class="ab-icon dashicons dashicons-shield" title="%s"></span><span class="ab-label">%s</span> ' ,
123+ \esc_attr__ ('REST API Cache ' , 'wp-rest-api-cache ' ),
124+ \esc_html__ ('REST Cache ' , 'wp-rest-api-cache ' )
125+ )
122126 ]);
123127 $ wp_admin_bar ->add_menu ([
124128 'parent ' => WpRestApiCache::ID ,
125129 'id ' => self ::MENU_ID ,
126130 'title ' => \esc_html__ ('Empty all cache ' , 'wp-rest-api-cache ' ),
127131 'href ' => \esc_url ($ this ->getEmptyCacheUrl ()),
128132 'meta ' => [
129- 'onclick ' => 'return confirm("This will clear ALL cache, continue?") '
133+ 'onclick ' => \sprintf (
134+ 'return confirm("%s") ' ,
135+ \esc_attr__ ('This will clear ALL cache, continue? ' , 'wp-rest-api-cache ' )
136+ )
130137 ]
131138 ]);
132139 }
You can’t perform that action at this time.
0 commit comments