Changeset 9901
- Timestamp:
- 11/26/2008 11:48:05 AM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r9741 r9901 787 787 788 788 if ( ! $r['blocking'] ) { 789 stream_set_blocking($handle, 0); 789 790 fclose($handle); 790 791 return array( 'headers' => array(), 'body' => '', 'response' => array('code', 'message') ); -
trunk/wp-includes/update.php
r9793 r9901 35 35 ) 36 36 return false; 37 38 // Update last_checked for current to prevent multiple blocking requests if request hangs 39 $current->last_checked = time(); 40 update_option( 'update_core', $current ); 37 41 38 42 if ( method_exists( $wpdb, 'db_version' ) ) … … 139 143 return false; 140 144 145 // Update last_checked for current to prevent multiple blocking requests if request hangs 146 $current->last_checked = time(); 147 update_option( 'update_plugins', $current ); 148 141 149 $to_send->plugins = $plugins; 142 150 $to_send->active = $active; … … 197 205 $new_option = ''; 198 206 $new_option->last_checked = time( ); 199 $time_not_changed = isset( $current ->last_checked ) && 43200 > ( time( ) - $current->last_checked );207 $time_not_changed = isset( $current_theme->last_checked ) && 43200 > ( time( ) - $current_theme->last_checked ); 200 208 201 209 if( $time_not_changed ) 202 210 return false; 211 212 // Update last_checked for current to prevent multiple blocking requests if request hangs 213 $current_theme->last_checked = time(); 214 update_option( 'update_themes', $current_theme ); 203 215 204 216 $themes = array( );
Note: See TracChangeset
for help on using the changeset viewer.