Permalink
Browse files

Fix output bug in ‘files in use’ menu

ID was not escaped properly in the Wonderflux > Files in use admin bar menu list items. An ID must not contain white space ;)
  • Loading branch information...
Jonnyauk committed Sep 28, 2017
1 parent a070d76 commit 13afb7b264282d9729acf112af410837337e91d7
Showing with 2 additions and 2 deletions.
  1. +1 −1 functions.php
  2. +1 −1 wf-includes/wf-helper-functions.php
View
@@ -1687,7 +1687,7 @@
* Incredibly useful for debugging - shows which files are your child themes and which are Wonderflux core.
*
* @since 0.93
* @version 2.0
* @version 2.6
*
* @param none
*
@@ -1324,7 +1324,7 @@ function wf_admin_bar_files_info(){
foreach ( $nice_includes as $menu_item ) {
//TODO: Add in links to Wonderflux guide for relevant template parts
$wp_admin_bar->add_menu( array(
'id' => esc_attr( $menu_item ),
'id' => sanitize_title( $menu_item ),
'parent' => 'wfx-file-menu',
'title' => esc_html( $menu_item ),
/*'href' => '#',*/

0 comments on commit 13afb7b

Please sign in to comment.