@@ -199,7 +199,7 @@ class WP_Object_Cache {
199199 * @access private
200200 * @since 2.0.0
201201 */
202- var $ non_existant_objects = array ();
202+ var $ non_existent_objects = array ();
203203
204204 /**
205205 * The amount of times the cache data was already stored in the cache.
@@ -238,7 +238,7 @@ function add($id, $data, $group = 'default', $expire = '') {
238238 if (empty ($ group ))
239239 $ group = 'default ' ;
240240
241- if (false !== $ this ->get ($ id , $ group, false ))
241+ if (false !== $ this ->get ($ id , $ group ))
242242 return false ;
243243
244244 return $ this ->set ($ id , $ data , $ group , $ expire );
@@ -252,7 +252,7 @@ function add($id, $data, $group = 'default', $expire = '') {
252252 * by default.
253253 *
254254 * On success the group and the id will be added to the
255- * $non_existant_objects property in the class.
255+ * $non_existent_objects property in the class.
256256 *
257257 * @since 2.0.0
258258 *
@@ -266,11 +266,11 @@ function delete($id, $group = 'default', $force = false) {
266266 if (empty ($ group ))
267267 $ group = 'default ' ;
268268
269- if (!$ force && false === $ this ->get ($ id , $ group, false ))
269+ if (!$ force && false === $ this ->get ($ id , $ group ))
270270 return false ;
271271
272272 unset ($ this ->cache [$ group ][$ id ]);
273- $ this ->non_existant_objects [$ group ][$ id ] = true ;
273+ $ this ->non_existent_objects [$ group ][$ id ] = true ;
274274 return true ;
275275 }
276276
@@ -294,11 +294,11 @@ function flush() {
294294 * ID in the cache group. If the cache is hit (success) then the contents
295295 * are returned.
296296 *
297- * On failure, the $non_existant_objects property is checked and if the
297+ * On failure, the $non_existent_objects property is checked and if the
298298 * cache group and ID exist in there the cache misses will not be
299- * incremented. If not in the nonexistant objects property, then the cache
299+ * incremented. If not in the nonexistent objects property, then the cache
300300 * misses will be incremented and the cache group and ID will be added to
301- * the nonexistant objects.
301+ * the nonexistent objects.
302302 *
303303 * @since 2.0.0
304304 *
@@ -319,10 +319,10 @@ function get($id, $group = 'default') {
319319 return $ this ->cache [$ group ][$ id ];
320320 }
321321
322- if ( isset ($ this ->non_existant_objects [$ group ][$ id ]) )
322+ if ( isset ($ this ->non_existent_objects [$ group ][$ id ]) )
323323 return false ;
324324
325- $ this ->non_existant_objects [$ group ][$ id ] = true ;
325+ $ this ->non_existent_objects [$ group ][$ id ] = true ;
326326 $ this ->cache_misses += 1 ;
327327 return false ;
328328 }
@@ -343,7 +343,7 @@ function replace($id, $data, $group = 'default', $expire = '') {
343343 if (empty ($ group ))
344344 $ group = 'default ' ;
345345
346- if (false === $ this ->get ($ id , $ group, false ))
346+ if (false === $ this ->get ($ id , $ group ))
347347 return false ;
348348
349349 return $ this ->set ($ id , $ data , $ group , $ expire );
@@ -381,8 +381,8 @@ function set($id, $data, $group = 'default', $expire = '') {
381381
382382 $ this ->cache [$ group ][$ id ] = $ data ;
383383
384- if (isset ($ this ->non_existant_objects [$ group ][$ id ]))
385- unset ($ this ->non_existant_objects [$ group ][$ id ]);
384+ if (isset ($ this ->non_existent_objects [$ group ][$ id ]))
385+ unset ($ this ->non_existent_objects [$ group ][$ id ]);
386386
387387 return true ;
388388 }
0 commit comments