mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Plugin install fixes. Props Denis-de-Bernardy. see #10192
git-svn-id: https://develop.svn.wordpress.org/trunk@11585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -115,7 +115,7 @@ function wp_update_plugins() {
|
||||
|
||||
$new_option = new stdClass;
|
||||
$new_option->last_checked = time();
|
||||
$timeout = 'load-plugins.php' == current_filter() ? 360 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
|
||||
$timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
|
||||
$time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked );
|
||||
|
||||
$plugin_changed = false;
|
||||
@@ -198,7 +198,7 @@ function wp_update_themes( ) {
|
||||
|
||||
$new_option = new stdClass;
|
||||
$new_option->last_checked = time( );
|
||||
$timeout = 'load-themes.php' == current_filter() ? 360 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
|
||||
$timeout = 'load-themes.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours
|
||||
$time_not_changed = isset( $current_theme->last_checked ) && $timeout > ( time( ) - $current_theme->last_checked );
|
||||
|
||||
if( $time_not_changed )
|
||||
|
||||
Reference in New Issue
Block a user