Changeset 3797
- Timestamp:
- 05/26/2006 09:09:06 PM (20 years ago)
- Location:
- branches/2.0
- Files:
-
- 3 edited
-
wp-admin/upgrade.php (modified) (1 diff)
-
wp-includes/cache.php (modified) (4 diffs)
-
wp-includes/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/upgrade.php
r3738 r3797 77 77 case 1: 78 78 $wp_current_db_version = __get_option('db_version'); 79 if ( $wp_db_version <$wp_current_db_version ) {79 if ( $wp_db_version != $wp_current_db_version ) { 80 80 wp_cache_flush(); 81 81 make_db_current_silent(); -
branches/2.0/wp-includes/cache.php
r3743 r3797 48 48 } 49 49 50 define('CACHE_SERIAL_HEADER', "<?php\n/ /");51 define('CACHE_SERIAL_FOOTER', " \n?".">");50 define('CACHE_SERIAL_HEADER', "<?php\n/*"); 51 define('CACHE_SERIAL_FOOTER', "*/\n?".">"); 52 52 53 53 class WP_Object_Cache { … … 104 104 if ( ! $this->acquire_lock() ) 105 105 return false; 106 106 107 107 $this->rm_cache_dir(); 108 108 $this->cache = array (); … … 159 159 } 160 160 161 $this->cache[$group][$id] = unserialize( substr(@ file_get_contents($cache_file), strlen(CACHE_SERIAL_HEADER), -strlen(CACHE_SERIAL_FOOTER)));161 $this->cache[$group][$id] = unserialize(base64_decode(substr(@ file_get_contents($cache_file), strlen(CACHE_SERIAL_HEADER), -strlen(CACHE_SERIAL_FOOTER)))); 162 162 if (false === $this->cache[$group][$id]) 163 163 $this->cache[$group][$id] = ''; … … 343 343 344 344 $temp_file = tempnam($group_dir, 'tmp'); 345 $serial = CACHE_SERIAL_HEADER. serialize($this->cache[$group][$id]).CACHE_SERIAL_FOOTER;345 $serial = CACHE_SERIAL_HEADER.base64_encode(serialize($this->cache[$group][$id])).CACHE_SERIAL_FOOTER; 346 346 $fd = @fopen($temp_file, 'w'); 347 347 if ( false === $fd ) { -
branches/2.0/wp-includes/version.php
r3796 r3797 4 4 5 5 $wp_version = '2.0.3-beta'; 6 $wp_db_version = 3 437;6 $wp_db_version = 3796; 7 7 8 8 ?>
Note: See TracChangeset
for help on using the changeset viewer.