Make WordPress Core


Ignore:
Timestamp:
10/19/2016 10:26:31 AM (8 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/themes.php

    r38788 r38827  
    491491wp_print_update_row_templates();
    492492
     493wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
     494    'totals'  => wp_get_update_data(),
     495) );
     496
    493497require( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.