[wp-trac] [WordPress Trac] #61675: wp-activate.php tries to set undefined property

WordPress Trac noreply at wordpress.org
Wed Jul 17 13:23:27 UTC 2024


#61675: wp-activate.php tries to set undefined property
------------------------------------------+-----------------------------
 Reporter:  skithund                      |      Owner:  (none)
     Type:  defect (bug)                  |     Status:  new
 Priority:  normal                        |  Milestone:  Awaiting Review
Component:  Networks and Sites            |    Version:
 Severity:  normal                        |   Keywords:
  Focuses:  multisite, php-compatibility  |
------------------------------------------+-----------------------------
 wp-activate.php tries to set `cache_enabled` property, which doesn't exist
 on all object cache implementations, triggering `Creation of dynamic
 property WP_Object_Cache::$cache_enabled is deprecated` error on PHP 8.2.

 {{{#!php
 <?php
 if ( is_object( $wp_object_cache ) ) {
         $wp_object_cache->cache_enabled = false;
 }
 ?>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61675>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list