WordPress.org

Make WordPress Core

Ticket #21327: cache_decr_fix.patch

File cache_decr_fix.patch, 457 bytes (added by bananastalktome, 9 years ago)
  • wp-includes/cache.php

     
    323323         * @return false|int False on failure, the item's new value on success.
    324324         */
    325325        function decr( $key, $offset = 1, $group = 'default' ) {
     326                if ( empty( $group ) )
     327                        $group = 'default';
     328               
    326329                if ( ! $this->_exists( $key, $group ) )
    327330                        return false;
    328331