Changeset 19022
- Timestamp:
- 10/20/2011 12:23:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/update.php
r19021 r19022 144 144 $new_option = new stdClass; 145 145 $new_option->last_checked = time(); 146 $timeout = 'load-plugins.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours 146 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 147 $timeout = in_array( current_filter(), array( 'load-plugins.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 147 148 $time_not_changed = isset( $current->last_checked ) && $timeout > ( time() - $current->last_checked ); 148 149 … … 222 223 $last_update = new stdClass; 223 224 224 $timeout = 'load-themes.php' == current_filter() ? 3600 : 43200; //Check for updated every 60 minutes if hitting the themes page, Else, check every 12 hours 225 // Check for updated every 60 minutes if hitting update pages; else, check every 12 hours. 226 $timeout = in_array( current_filter(), array( 'load-themes.php', 'load-update.php', 'load-update-core.php' ) ) ? 3600 : 43200; 225 227 $time_not_changed = isset( $last_update->last_checked ) && $timeout > ( time( ) - $last_update->last_checked ); 226 228
Note: See TracChangeset
for help on using the changeset viewer.