[wp-trac] [WordPress Trac] #58896: Fix WP_List_Table magic methods for PHP 8.2 dynamic properties

WordPress Trac noreply at wordpress.org
Mon Jul 24 22:12:35 UTC 2023


#58896: Fix WP_List_Table magic methods for PHP 8.2 dynamic properties
------------------------------------------------+--------------------------
 Reporter:  antonvlasenko                       |       Owner:
                                                |  hellofromTonya
     Type:  defect (bug)                        |      Status:  assigned
 Priority:  normal                              |   Milestone:  6.4
Component:  Administration                      |     Version:  4.0
 Severity:  normal                              |  Resolution:
 Keywords:  needs-patch needs-unit-tests php82  |     Focuses:
------------------------------------------------+--------------------------

Comment (by hellofromTonya):

 More context:

 These changes were made for backwards-compatibility (BC).

 In #22234 (in WP 4.0.0):

 * [28493] added the `__get()` magic method to `WP_List_Table` to:
 >Make private properties readable for backwards compatibility

 * [28521] added the `__set()` magic method

 * [28524] added the `__isset()` and `__unset()` magic methods

 In #30891 (in WP 4.2.0):
 * [31146] added the list of `compat_fields` and the logic in each of the
 property magic methods.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58896#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list