diff --git a/dispatchers/Html.php b/dispatchers/Html.php index 17de0ee1..ce0dd593 100644 --- a/dispatchers/Html.php +++ b/dispatchers/Html.php @@ -522,9 +522,14 @@ protected function before_output() { * @return void */ protected function do_panel_menu_item( $id, array $menu ) { + if ( empty( $menu['attr-title'] ) ) { + $menu['attr-title'] = ''; + } + printf( - '
  • ', + '
  • ', esc_attr( $menu['href'] ), + esc_attr( $menu['attr-title'] ), esc_html( $menu['title'] ) ); diff --git a/output/html/request.php b/output/html/request.php index 5007b2d7..b8baedbc 100644 --- a/output/html/request.php +++ b/output/html/request.php @@ -224,11 +224,20 @@ public function admin_menu( array $menu ) { /* translators: %s: Number of additional query variables */ : __( 'Request (+%s)', 'query-monitor' ); + $attr_title = ( empty( $count ) ) + ? '' + /* translators: %s: Number of additional query variables */ + : __( '+%s non-standard query variables in request. See Query Vars section.', 'query-monitor' ); + $menu[ $this->collector->id() ] = $this->menu( array( 'title' => esc_html( sprintf( $title, number_format_i18n( $count ) ) ), + 'attr-title' => esc_html( sprintf( + $attr_title, + number_format_i18n( $count ) + ) ), ) ); return $menu;