WordPress.org

Make WordPress Core

Changeset 37978


Ignore:
Timestamp:
07/05/2016 04:45:42 PM (4 years ago)
Author:
ocean90
Message:

Upgrade/Install: Change priority for theme/update update rows.

wp_plugin_update_rows() and wp_theme_update_rows() are using the site transients update_plugins and update_themes which are set by wp_update_plugins() and wp_update_themes(). Both functions are hooked into load-plugins.php and load-themes.php. Therefore the update rows need to be registered after the transients were populated.

See #13071.

File:
1 edited

Legend:

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

    r37920 r37978  
    101101
    102102// Update hooks.
    103 add_action( 'admin_init', 'wp_plugin_update_rows' );
    104 add_action( 'admin_init', 'wp_theme_update_rows'  );
     103add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
     104add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.
    105105
    106106add_action( 'admin_notices', 'update_nag',      3  );
Note: See TracChangeset for help on using the changeset viewer.