[wp-trac] [WordPress Trac] #48242: Deprecate wp_parse_url() in favour of native parse_url()

WordPress Trac noreply at wordpress.org
Fri Nov 17 12:25:26 UTC 2023


#48242: Deprecate wp_parse_url() in favour of native parse_url()
------------------------------------------+-------------------------------
 Reporter:  johnbillion                   |       Owner:  (none)
     Type:  enhancement                   |      Status:  closed
 Priority:  normal                        |   Milestone:
Component:  General                       |     Version:  5.2
 Severity:  normal                        |  Resolution:  wontfix
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  coding-standards
------------------------------------------+-------------------------------

Comment (by Cybr):

 This function was added because of a bug in PHP, and plugin developers are
 now compelled to implement this useless method because of Plugin Check (as
 is `wp_json_encode()`).

 If we'd like to keep this function because of the slippery slope fallacy
 that a bug will happen because there used to be one, then I recommend
 adding a companion function for everything in PHP. /s

 It's never too late to clean up after oneself.

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


More information about the wp-trac mailing list