diff --git a/Puc/v4p1/DebugBar/Extension.php b/Puc/v4p1/DebugBar/Extension.php index d8ac427..8b50ce1 100644 --- a/Puc/v4p1/DebugBar/Extension.php +++ b/Puc/v4p1/DebugBar/Extension.php @@ -46,7 +46,7 @@ if ( !class_exists('Puc_v4p1_DebugBar_Extension', false) ): 'puc-debug-bar-js-v4', $this->getLibraryUrl("/js/debug-bar.js"), array('jquery'), - '20161219' + '20170516' ); } diff --git a/Puc/v4p1/DebugBar/Panel.php b/Puc/v4p1/DebugBar/Panel.php index c0a87c6..80812d0 100644 --- a/Puc/v4p1/DebugBar/Panel.php +++ b/Puc/v4p1/DebugBar/Panel.php @@ -11,7 +11,7 @@ if ( !class_exists('Puc_v4p1_DebugBar_Panel', false) && class_exists('Debug_Bar_ public function __construct($updateChecker) { $this->updateChecker = $updateChecker; $title = sprintf( - 'PUC (%s)', + 'PUC (%s)', esc_attr($this->updateChecker->getUniqueName('uid')), $this->updateChecker->slug ); diff --git a/js/debug-bar.js b/js/debug-bar.js index 57baaa9..b8435db 100644 --- a/js/debug-bar.js +++ b/js/debug-bar.js @@ -44,7 +44,7 @@ jQuery(function($) { target.attr('id', 'debug-menu-target-puc-' + uid); //Change the menu link ID as well and point it at the new target ID. - $('#puc-debug-menu-link-' + uid) + $('#debug-bar-menu').find('.puc-debug-menu-link-' + uid) .closest('.debug-menu-link') .attr('id', 'debug-menu-link-puc-' + uid) .attr('href', '#' + target.attr('id'));