WordPress.org

Make WordPress Core

Ticket #21402: 21402.2.diff

File 21402.2.diff, 829 bytes (added by Mte90, 3 years ago)

refreshed

  • src/wp-includes/cache.php

     
    733733        public function __construct() {
    734734                $this->multisite = is_multisite();
    735735                $this->blog_prefix =  $this->multisite ? get_current_blog_id() . ':' : '';
    736 
    737 
    738                 /**
    739                  * @todo This should be moved to the PHP4 style constructor, PHP5
    740                  * already calls __destruct()
    741                  */
    742                 register_shutdown_function( array( $this, '__destruct' ) );
    743736        }
    744 
    745         /**
    746          * Saves the object cache before object is completely destroyed.
    747          *
    748          * Called upon object destruction, which should be when PHP ends.
    749          *
    750          * @since 2.0.8
    751          *
    752          * @return true Always returns true.
    753          */
    754         public function __destruct() {
    755                 return true;
    756         }
    757737}