[wp-trac] [WordPress Trac] #49980: lift error suppression flag from parse_url function calls

WordPress Trac noreply at wordpress.org
Fri Apr 24 07:27:13 UTC 2020


#49980: lift error suppression flag from parse_url function calls
---------------------------+-------------------------------
 Reporter:  netpassprodsr  |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  5.5
Component:  General        |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  coding-standards
---------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47617" 47617]:
 {{{
 #!CommitTicketReference repository="" revision="47617"
 Code Modernization: Remove error suppression from `parse_url()` calls.

 Previously, the `@` operator was used to prevent possible warnings emitted
 by `parse_url()` in PHP < 5.3.3 when URL parsing failed.

 Now that the minimum version of PHP required by WordPress is 5.6.20, this
 is no longer needed.

 Props netpassprodsr, Howdy_McGee.
 Fixes #49980. See #24780.
 }}}

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


More information about the wp-trac mailing list