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

WordPress Trac noreply at wordpress.org
Tue Oct 4 21:54:44 UTC 2016


#36356: Function signature of wp_parse_url() does not match parse_url()
--------------------------------------+----------------------------
 Reporter:  johnbillion               |       Owner:  peterwilsoncc
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  HTTP API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------

Comment (by peterwilsoncc):

 Replying to [comment:37 jrf]:
 > @peterwilsoncc
 > Except you are returning `$parts` early in that case which will give
 issues when a `$component` has been requested (in that case, they would
 expect null, not false as a return).

 The doco is ambiguous in the circumstance, normally I'd clarify but wanted
 to get the build passing

 I'm happy to look over it, to clarify you thoughts:
 * with component: component if exists
 * with component: null on parse error
 * no component: false on parse error
 * no component: array of set values

 is this correct?


 P

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


More information about the wp-trac mailing list