[wp-trac] [WordPress Trac] #31011: WP 4.1 checks for updates with every load of any admin page
WordPress Trac
noreply at wordpress.org
Wed Jan 14 17:23:19 UTC 2015
#31011: WP 4.1 checks for updates with every load of any admin page
-------------------------------+------------------------------
Reporter: hallcp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.1
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by MikeHansenMe):
* keywords: => reporter-feedback
Comment:
Hello hallcp, thanks for reporting this. I was able to confirm that
wp_update_themes and wp_update_plugins is being called on every page load
(in fact multiple times) however looking at those 2 functions they should
only make the request if something has changed or it has been 1 hour or 12
hours since last check depending on the current filter. Looking around
line 207 and 372 is where that happens.
The functions are called 2 times each on each load with the following
current_filter
Every Page function / current_filter
wp_update_plugins: false
wp_update_themes: false
wp_update_plugins: admin_menu_bar
wp_update_themes: admin_menu_bar
Themes page function / current_filter
wp_update_plugins: false
wp_update_themes: false
wp_update_themes: load-themes.php
wp_update_plugins: admin_menu_bar
wp_update_themes: admin_menu_bar
Plugins page function / current_filter
wp_update_plugins: false
wp_update_themes: false
wp_update_plugins: load-plugins.php
wp_update_plugins: admin_menu_bar
wp_update_themes: admin_menu_bar
While all these except the additional calls on themes.php and plugins.php
fall under default in the switch with 12 hour as $timeout.
Can you confirm this still happens for you with the default theme and no
plugins active?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31011#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list