mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 12:01:40 +00:00
Don't run get_plugins() on every admin page load. Use cron for async update plugin requests. see #7372
git-svn-id: https://develop.svn.wordpress.org/trunk@8514 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -133,6 +133,7 @@ function wp_cron() {
|
||||
function wp_get_schedules() {
|
||||
$schedules = array(
|
||||
'hourly' => array( 'interval' => 3600, 'display' => __('Once Hourly') ),
|
||||
'twicedaily' => array( 'interval' => 43200, 'display' => __('Twice Daily') ),
|
||||
'daily' => array( 'interval' => 86400, 'display' => __('Once Daily') ),
|
||||
);
|
||||
return array_merge( apply_filters( 'cron_schedules', array() ), $schedules );
|
||||
|
||||
Reference in New Issue
Block a user