[wp-trac] [WordPress Trac] #58897: Fix WP_User_Query magic methods for PHP 8.2 dynamic property

WordPress Trac noreply at wordpress.org
Thu Sep 7 20:44:03 UTC 2023


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

Comment (by hellofromTonya):

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

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

 [56353] 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 [56353], [56530].

 See #58897, #57686.
 }}}

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


More information about the wp-trac mailing list