[wp-hackers] WPMU VHOST constant
Brent
thenbrent at gmail.com
Wed Aug 5 17:56:35 UTC 2009
James thanks for also comfirming. I feel much more confident about using it
now. :-)
I did see it used all over the WPMU codebase. I was just surprised there
wasn't a simple function for it, like so much else in wp.org!
I've written up a codex page to describe using the VHOST constant here:
http://codex.wordpress.org/WPMU_VHOST_Constant
Hopefully that'll provide others with the required info to use it with
confidence. At least until the WPMU wp.org merge brings in a nice function.
;-)
On Wed, Aug 5, 2009 at 4:25 AM, Casey Bisson <casey.bisson at gmail.com> wrote:
>
> There are a few examples where WPMU uses a global var or constant while
> wordpress.org would have offered a function as you suggest.
>
> As the WPMU and WP.org codebases and functionality get merged, I'd expect
> that things like that will get fixed up.*
>
> * kicks self for not having yet offered any patches to help with that.
>
>
> On Aug 4, 2009, at 10:18 PM, James Collins wrote:
>
> I personally think there should be a simple function added to WPMU for
>> this
>> (eg wpmu_is_vhost_install() which returns a boolean). It would be simpler
>> and cleaner than referring to the VHOST constant all over the place.
>>
>
> _______________________________________________
> 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