[wp-hackers] network_site_url returning wrong url bug
Dion Hulse (dd32)
wordpress at dd32.id.au
Thu Jan 12 21:00:46 UTC 2012
Correct.
Also, network_*_url() is designed to return Network url's, ie. the
"master" site.
(site|home)_url() do current-site url's.
On 13 January 2012 09:33, Charles Frees-Melvin
<charles.freesmelvin at me.com> wrote:
> WordPress 3.4 now uses network_home_url() in password resets. This was changed in changeset 19705 over the past week.
> --
> Charles E. Frees-Melvin
> www.cefm.ca
>
> Sent from my Rogers iPhone 4S
>
> On 2012-01-12, at 15:30, Robert Lusby <nanogwp at gmail.com> wrote:
>
>> On 12/01/2012 19:12, Otto wrote:
>>> On Thu, Jan 12, 2012 at 1:00 PM, Robert Lusby<nanogwp at gmail.com> wrote:
>>>> Is network_site_url() meant to return the master/parent site URL? Or the url
>>>> of the current website?
>>>>
>>>> The Codex says the current website. If so, you have a bug, as it returns the
>>>> parent/master website and not the current site.
>>> So fix the codex. It's a wiki, people noticing and correcting things
>>> is how it improves.
>>>
>>> -Otto
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>> Indeed I understand how the Codex works - thanks - however which is it meant to return?
>>
>> WordPress sends out it's password reset email using network_site_url() as the URL generator for the password reset form, which to me suggests it should return the URL of the current site (and confirm what's in the Codex) - not the URL of the parent.
>>
>> Is the Codex correct and the function buggy? Or is the function correct and WordPress always sends reset emails using the master parent/site URL rather than the current site?
>>
>> Rob
>>
>>
>>
>>
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list