Make WordPress Core

Ticket #30430: wp-deep-copy-2.diff

File wp-deep-copy-2.diff, 1004 bytes (added by jipmoors, 10 years ago)

optimization: removing duplicate functionality

  • src/wp-includes/cache.php

     
    244244}
    245245
    246246/**
     247
     248
     249
     250
     251
     252
     253
     254
     255
     256
     257
     258
     259
     260
     261
     262
     263
     264
     265
     266
     267
     268
     269
    247270 * WordPress Object Cache
    248271 *
    249272 * The WordPress Object Cache is used to save on trips to the database. The
     
    619642
    620643                if ( is_object( $data ) )
    621644                        $data = clone $data;
     645
     646
    622647
    623648                $this->cache[$group][$key] = $data;
    624649                return true;