Ticket #21402: 21402.2.diff
File 21402.2.diff, 829 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/cache.php
733 733 public function __construct() { 734 734 $this->multisite = is_multisite(); 735 735 $this->blog_prefix = $this->multisite ? get_current_blog_id() . ':' : ''; 736 737 738 /**739 * @todo This should be moved to the PHP4 style constructor, PHP5740 * already calls __destruct()741 */742 register_shutdown_function( array( $this, '__destruct' ) );743 736 } 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.8751 *752 * @return true Always returns true.753 */754 public function __destruct() {755 return true;756 }757 737 }