[wp-trac] [WordPress Trac] #14840: Constant UPLOADS not working for the main site if MULTISITES is not enabled
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 10 20:27:37 UTC 2010
#14840: Constant UPLOADS not working for the main site if MULTISITES is not enabled
--------------------------+-------------------------------------------------
Reporter: Axel_germany | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.0.2
Component: Upload | Version: 3.1
Severity: major | Keywords:
--------------------------+-------------------------------------------------
Comment(by nacin):
Actually, the check in wpdb works because it is wrapped in an
is_multisite() call, hence functionally valid.
Appears to have limited impact. These are functionally valid checks:
{{{
./wp-admin/menu.php:198: if ( ( ! is_multisite() || defined(
'MULTISITE' ) ) && defined('WP_ALLOW_MULTISITE') && WP_ALLOW_MULTISITE &&
is_super_admin() )
./wp-includes/wp-db.php:643: if ( defined( 'MULTISITE'
) && ( 0 == $blog_id || 1 == $blog_id ) )
./wp-settings.php:88:} elseif ( ! defined( 'MULTISITE' ) ) {
./wp-includes/load.php:611: if ( defined( 'MULTISITE' ) )
./wp-admin/network.php:21:if ( is_multisite() && ! defined( 'MULTISITE' )
)
./wp-admin/includes/upgrade.php:1114: if ( $wp_current_db_version <
14139 && is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) &&
get_site_option( 'siteurl' ) === false )
}}}
Thus the only issue is this line.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14840#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list