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.
Built from https://develop.svn.wordpress.org/trunk@37978


git-svn-id: http://core.svn.wordpress.org/trunk@37919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2016-07-05 16:46:29 +00:00
parent 51579c49a8
commit bfe46464c5
2 changed files with 3 additions and 3 deletions

View File

@ -100,8 +100,8 @@ add_action( 'admin_notices', 'default_password_nag' );
add_action( 'profile_update', 'default_password_nag_edit_user', 10, 2 );
// Update hooks.
add_action( 'admin_init', 'wp_plugin_update_rows' );
add_action( 'admin_init', 'wp_theme_update_rows' );
add_action( 'load-plugins.php', 'wp_plugin_update_rows', 20 ); // After wp_update_plugins() is called.
add_action( 'load-themes.php', 'wp_theme_update_rows', 20 ); // After wp_update_themes() is called.
add_action( 'admin_notices', 'update_nag', 3 );
add_action( 'admin_notices', 'maintenance_nag', 10 );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta1-37977';
$wp_version = '4.6-beta1-37978';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.