WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2016 04:36:07 PM (3 years ago)
Author:
obenland
Message:

Update/Install: Shiny Updates v2.

Gone are the days of isolation and feelings of "meh", brought on by The Bleak Screen of Sadness. For a shiny knight has arrived to usher our plugins and themes along their arduous journey of installation, updates, and the inevitable fate of ultimate deletion.

Props swissspidy, adamsilverstein, mapk, afragen, ocean90, ryelle, j-falk, michael-arestad, melchoyce, DrewAPicture, AdamSoucie, ethitter, pento, dd32, kraftbj, Ipstenu, jorbin, afercia, stephdau, paulwilde, jipmoors, khag7, svovaf, jipmoors, obenland.
Fixes #22029, #25828, #31002, #31529, #31530, #31773, #33637, #35032.

File:
1 edited

Legend:

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

    r37488 r37714  
    246246
    247247        $total_this_page = $totals[ $status ];
     248
     249        $js_plugins = array();
     250        foreach ( $plugins as $key => $list ) {
     251            $js_plugins[ $key ] = array_keys( (array) $list );
     252        }
     253
     254        wp_localize_script( 'updates', '_wpUpdatesItemCounts', array(
     255            'plugins' => $js_plugins,
     256        ) );
    248257
    249258        if ( ! $orderby ) {
Note: See TracChangeset for help on using the changeset viewer.