Make WordPress Core

Ticket #21402: 21402.diff

File 21402.diff, 781 bytes (added by wonderboymusic, 11 years ago)
  • wp-includes/cache.php

     
    629629
    630630                $this->multisite = is_multisite();
    631631                $this->blog_prefix =  $this->multisite ? $blog_id . ':' : '';
    632 
    633 
    634                 /**
    635                  * @todo This should be moved to the PHP4 style constructor, PHP5
    636                  * already calls __destruct()
    637                  */
    638                 register_shutdown_function( array( $this, '__destruct' ) );
    639632        }
    640 
    641         /**
    642          * Will save the object cache before object is completely destroyed.
    643          *
    644          * Called upon object destruction, which should be when PHP ends.
    645          *
    646          * @since  2.0.8
    647          *
    648          * @return bool True value. Won't be used by PHP
    649          */
    650         function __destruct() {
    651                 return true;
    652         }
    653633}