[wp-trac] [WordPress Trac] #56535: Improve the compatibility of WP_Admin_Bar with PHP 8.2

WordPress Trac noreply at wordpress.org
Thu Sep 8 17:53:50 UTC 2022


#56535: Improve the compatibility of WP_Admin_Bar with PHP 8.2
---------------------------+-----------------------------
 Reporter:  antonvlasenko  |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 The `WP_Admin_Bar` class currently uses the `__get` magic method to return
 values for some of its properties.
 These dynamic properties are not supported in PHP 8.2 and above.
 Therefore, `WP_Admin_Bar` should be refactored to remove the dynamic
 properties while ensuring that backward compatibility is preserved.

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


More information about the wp-trac mailing list