[wp-trac] [WordPress Trac] #36356: Function signature of wp_parse_url() does not match parse_url()

WordPress Trac noreply at wordpress.org
Mon Mar 28 16:06:16 UTC 2016


#36356: Function signature of wp_parse_url() does not match parse_url()
--------------------------+-------------------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  4.4
 Severity:  normal        |   Keywords:  needs-patch 2nd-opinion
  Focuses:  docs          |
--------------------------+-------------------------------------
 The function description for `wp_parse_url()` states that the function is:

 `A wrapper for PHP's parse_url() function that handles edgecases in < PHP
 5.4.7`

 PHP's `parse_url()` function accepts an optional second parameter for
 specifying which URL part should be returned. This parameter is not
 supported in `wp_parse_url()`, therefore either `wp_parse_url()` should be
 modified so this parameter is accepted, or its documentation should be
 corrected.

 The former is preferable, the latter is easier.

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


More information about the wp-trac mailing list