From fdb54dfe7b0de75042d8a5958876051baa091acc Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Tue, 5 Jul 2016 16:45:42 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37978 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/admin-filters.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/admin-filters.php b/src/wp-admin/includes/admin-filters.php index 06a973b0bb..02b49c41eb 100644 --- a/src/wp-admin/includes/admin-filters.php +++ b/src/wp-admin/includes/admin-filters.php @@ -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 );