[wp-trac] [WordPress Trac] #48075: Remove conditional use of PHP realpath()

WordPress Trac noreply at wordpress.org
Fri Sep 20 20:46:09 UTC 2019


#48075: Remove conditional use of PHP realpath()
----------------------------+--------------------------------------------
 Reporter:  jrf             |       Owner:  SergeyBiryukov
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  5.3
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  performance, coding-standards
----------------------------+--------------------------------------------
Changes (by SergeyBiryukov):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46210" 46210]:
 {{{
 #!CommitTicketReference repository="" revision="46210"
 Code Modernization: Remove conditional use of PHP `realpath()`.

 The `realpath()` function was introduced in PHP 4.0.0. There's no point in
 checking if the function exists in PHP 5.6+, in only 2 instances out of
 29.

 Props jrf.
 Fixes #48075.
 }}}

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


More information about the wp-trac mailing list