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

WordPress Trac noreply at wordpress.org
Thu Sep 7 20:39:22 UTC 2023


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

Comment (by hellofromTonya):

 In [changeset:"56542" 56542]:
 {{{
 #!CommitTicketReference repository="" revision="56542"
 Code Modernization: Use wp_trigger_error() in WP_List_Table magic methods.

 Replaces `trigger_error()` with `wp_trigger_error()` in each of the
 `WP_List_Table` magic methods.

 [56349] added the dynamic properties deprecation messages to the
 `__get()`, `__set()`, `__isset()`, `__unset()` magic methods. Since that
 commit, `wp_trigger_error()` was introduced (see [56530]) as a wrapper for
 `trigger_error()`.

 Follow-up to [56349], [56356], [56530].

 See #58896, #57686.
 }}}

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


More information about the wp-trac mailing list