[wp-trac] [WordPress Trac] #48074: Remove work-arounds for unsupported PHP versions

WordPress Trac noreply at wordpress.org
Thu Sep 19 18:21:48 UTC 2019


#48074: Remove work-arounds for unsupported PHP versions
----------------------------+--------------------------------------------
 Reporter:  jrf             |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  performance, coding-standards
----------------------------+--------------------------------------------
Changes (by jrf):

 * Attachment "48074-tests-Remove-work-arounds-for-get_called_class.patch"
 added.

 The `get_called_class()` function was introduced in PHP 5.3, so no longer
 needs a work-around. See: https://www.php.net/manual/en/function.get-
 called-class.php All instances were this method was called within the WP
 core codebase have been adjusted. Leaving the method in place for now as
 plugins/themes which use the WP unit test framework could still call this
 method.

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


More information about the wp-trac mailing list