[wp-trac] [WordPress Trac] #35597: Redefining already defined constructor for class WP_User_Search

WordPress Trac noreply at wordpress.org
Mon Jan 25 10:15:42 UTC 2016


#35597: Redefining already defined constructor for class WP_User_Search
--------------------------+------------------------------
 Reporter:  arena         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dd32):

 Hi @arena,
 What version of PHP are you using?

 I expect the answer will be PHP 5.3/5.4?
 Unfortunately this isn't something we can change, for backwards
 compatibility with WordPress plugins, and also forwards compatibility with
 PHP 7.
 Removing the extra PHP4-style constructor breaks compatibility with older
 WordPress plugins, Moving it before the new-style constructor silences the
 PHP 5.4 strict standard warning, but then emits a PHP7 warning.

 IIRC PHP 5.5 dropped that Strict standard rule since it wasn't viable
 moving forward (I believe).

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


More information about the wp-trac mailing list