[wp-trac] [WordPress Trac] #35287: get_site_url does not accept path parameter

WordPress Trac noreply at wordpress.org
Sat Jan 2 16:10:08 UTC 2016


#35287: get_site_url does not accept path parameter
--------------------------+-----------------------
 Reporter:  WebDevDLo     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------
Changes (by WebDevDLo):

 * status:  closed => reopened
 * resolution:  invalid =>


Comment:

 Hi @swissspidy -

 Thank you for the prompt reply! That isn't quite the answer. The
 [https://developer.wordpress.org/reference/functions/get_site_url/
 documentation for get_site_url()] says the following about the $blog_id
 parameter. It is optional and defaults to null (current site), see below.

 Parameters

 $blog_id
 (int) (Optional) Blog ID. Default null (current site).
 Default value: null

 So, the issue is that first parameter is not defaulted as specified.
 That's the bug. Does that make sense?

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


More information about the wp-trac mailing list