Make WordPress Core


Ignore:
Timestamp:
10/19/2016 10:26:31 AM (10 years ago)
Author:
swissspidy
Message:

Upgrade/Install: Refresh update counts after page load.

By enqueuing the updates script in the footer and passing the number of available updates to it after page load, the update bubbles will be more accurate.

Props ocean90, swissspidy.
Fixes #13071.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r38307 r38827  
    151151
    152152                wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
    153                         'totals' => $totals,
     153                        'themes' => $totals,
     154                        'totals' => wp_get_update_data(),
    154155                ) );
    155156
Note: See TracChangeset for help on using the changeset viewer.