[wp-trac] [WordPress Trac] #12848: Network instructions need to be more verbose
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 5 00:07:12 UTC 2010
#12848: Network instructions need to be more verbose
-------------------------+--------------------------------------------------
Reporter: sivel | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.0
Component: Multisite | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by nacin):
I've been thinking about [14000] for a while. This will keep the site
operational as non-MS, instead of a half-loaded MS admin screen and a
fatal error on get_dirsize().
Most people wouldn't see the notice spit out by the redefinition of a
constant, but I think "Why am I not getting my network panels?" is better
than "Why isn't WordPress working? The Network feature sucks."
I realized I can now improve the is_multisite() logic with:
{{{
function is_multisite() {
if ( defined( 'MULTISITE' )
return (bool) MULTISITE;
if ( defined( 'VHOST' ) || defined( 'SUNRISE' ) )
return true;
return false;
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12848#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list