Make WordPress Core

Changeset 13054


Ignore:
Timestamp:
02/11/2010 04:58:32 PM (17 years ago)
Author:
ryan
Message:

Fix typos. Fix assignment. Remove passing of non-existent arg. Props ScottMac. fixes #12193

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r12752 r13054  
    15811581
    15821582                if ($match[3] == 'Z')
    1583                         $match[3] == '+0000';
     1583                        $match[3] = '+0000';
    15841584
    15851585                return strtotime($match[1] . " " . $match[2] . " " . $match[3]);
  • trunk/wp-includes/cache.php

    r9740 r13054  
    200200         * @since 2.0.0
    201201         */
    202         var $non_existant_objects = array ();
     202        var $non_existent_objects = array ();
    203203
    204204        /**
     
    239239                        $group = 'default';
    240240
    241                 if (false !== $this->get($id, $group, false))
     241                if (false !== $this->get($id, $group))
    242242                        return false;
    243243
     
    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
     
    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        }
     
    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
     
    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;
     
    344344                        $group = 'default';
    345345
    346                 if (false === $this->get($id, $group, false))
     346                if (false === $this->get($id, $group))
    347347                        return false;
    348348
     
    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;
Note: See TracChangeset for help on using the changeset viewer.