Make WordPress Core

Ticket #19405: 19405.patch

File 19405.patch, 1.1 KB (added by linuxologos, 13 years ago)
  • wp-includes/admin-bar.php

     
    569569
    570570        $update_data = wp_get_update_data();
    571571
    572         if ( !$update_data['counts']['total'] )
     572        if ( ! $update_data['counts']['total'] )
    573573                return;
    574574
    575         $update_title = "<span title='{$update_data['title']}'>";
    576         $update_title .= sprintf( __('Updates %s'), "<span id='ab-updates' class='update-count'>" . number_format_i18n($update_data['counts']['total']) . '</span>' );
    577         $update_title .= '</span>';
    578 
    579         $wp_admin_bar->add_menu( array( 'id' => 'updates', 'title' => $update_title, 'href' => network_admin_url( 'update-core.php' ) ) );
     575        $update_title = sprintf( __( 'Updates %s' ), "<span id='ab-updates' class='update-count'>" . number_format_i18n( $update_data['counts']['total'] ) . '</span>' );
     576       
     577        $wp_admin_bar->add_menu( array(
     578                'id'    => 'updates',
     579                'title' => $update_title,
     580                'href'  => network_admin_url( 'update-core.php' ),
     581                'meta'  => array( 'title' => $update_data['title'] ),
     582        ) );
    580583}
    581584
    582585/**