From 10221b01f25b478487a21ecf9c631a38562a306a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 11 Feb 2010 16:58:32 +0000 Subject: [PATCH] Fix typos. Fix assignment. Remove passing of non-existent arg. Props ScottMac. fixes #12193 git-svn-id: https://develop.svn.wordpress.org/trunk@13054 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-app.php | 2 +- wp-includes/cache.php | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/wp-app.php b/wp-app.php index c2875266b3..6504d7080b 100644 --- a/wp-app.php +++ b/wp-app.php @@ -1580,7 +1580,7 @@ EOD; return false; if ($match[3] == 'Z') - $match[3] == '+0000'; + $match[3] = '+0000'; return strtotime($match[1] . " " . $match[2] . " " . $match[3]); } diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 5eef60b13c..4353687328 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -199,7 +199,7 @@ class WP_Object_Cache { * @access private * @since 2.0.0 */ - var $non_existant_objects = array (); + var $non_existent_objects = array (); /** * The amount of times the cache data was already stored in the cache. @@ -238,7 +238,7 @@ class WP_Object_Cache { if (empty ($group)) $group = 'default'; - if (false !== $this->get($id, $group, false)) + if (false !== $this->get($id, $group)) return false; return $this->set($id, $data, $group, $expire); @@ -252,7 +252,7 @@ class WP_Object_Cache { * by default. * * On success the group and the id will be added to the - * $non_existant_objects property in the class. + * $non_existent_objects property in the class. * * @since 2.0.0 * @@ -266,11 +266,11 @@ class WP_Object_Cache { if (empty ($group)) $group = 'default'; - if (!$force && false === $this->get($id, $group, false)) + if (!$force && false === $this->get($id, $group)) return false; unset ($this->cache[$group][$id]); - $this->non_existant_objects[$group][$id] = true; + $this->non_existent_objects[$group][$id] = true; return true; } @@ -294,11 +294,11 @@ class WP_Object_Cache { * ID in the cache group. If the cache is hit (success) then the contents * are returned. * - * On failure, the $non_existant_objects property is checked and if the + * On failure, the $non_existent_objects property is checked and if the * cache group and ID exist in there the cache misses will not be - * incremented. If not in the nonexistant objects property, then the cache + * incremented. If not in the nonexistent objects property, then the cache * misses will be incremented and the cache group and ID will be added to - * the nonexistant objects. + * the nonexistent objects. * * @since 2.0.0 * @@ -319,10 +319,10 @@ class WP_Object_Cache { return $this->cache[$group][$id]; } - if ( isset ($this->non_existant_objects[$group][$id]) ) + if ( isset ($this->non_existent_objects[$group][$id]) ) return false; - $this->non_existant_objects[$group][$id] = true; + $this->non_existent_objects[$group][$id] = true; $this->cache_misses += 1; return false; } @@ -343,7 +343,7 @@ class WP_Object_Cache { if (empty ($group)) $group = 'default'; - if (false === $this->get($id, $group, false)) + if (false === $this->get($id, $group)) return false; return $this->set($id, $data, $group, $expire); @@ -381,8 +381,8 @@ class WP_Object_Cache { $this->cache[$group][$id] = $data; - if(isset($this->non_existant_objects[$group][$id])) - unset ($this->non_existant_objects[$group][$id]); + if(isset($this->non_existent_objects[$group][$id])) + unset ($this->non_existent_objects[$group][$id]); return true; }