Make WordPress Core


Ignore:
Timestamp:
11/30/2011 09:59:18 PM (15 years ago)
Author:
duck_
Message:

Move awaiting moderation title to the .ab-item link so that it's easier to display. Fixes #19403.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r19434 r19497  
    519519        $awaiting_title = esc_attr( sprintf( _n( '%s comment awaiting moderation', '%s comments awaiting moderation', $awaiting_mod ), number_format_i18n( $awaiting_mod ) ) );
    520520
    521         $icon  = "<div class='ab-comments-icon' title='$awaiting_title'>";
    522         $icon .= "<div class='ab-comments-icon-body'></div>";
    523         $icon .= "<div class='ab-comments-icon-arrow'></div>";
    524         $icon .= "</div>";
     521        $icon  = '<div class="ab-comments-icon">';
     522        $icon .= '<div class="ab-comments-icon-body"></div>';
     523        $icon .= '<div class="ab-comments-icon-arrow"></div>';
     524        $icon .= '</div>';
    525525
    526526        $title = '<span id="ab-awaiting-mod" class="awaiting-mod pending-count count-' . $awaiting_mod . '">' . number_format_i18n( $awaiting_mod ) . '</span>';
    … …  
    530530                'title' => $icon . $title,
    531531                'href'  => admin_url('edit-comments.php'),
     532                'meta'  => array( 'title' => $awaiting_title ),
    532533        ) );
    533534}
Note: See TracChangeset for help on using the changeset viewer.