From 7d8078a2150c3fd0a60831a12999d67015661025 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 17 Sep 2012 22:05:06 +0000 Subject: [PATCH] Attach the default ms_files_rewriting site option filter in ms-default-constants, as ms-default-filters is not included during SHORTINIT. see #19235. git-svn-id: http://core.svn.wordpress.org/trunk@21881 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-default-constants.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/ms-default-constants.php b/wp-includes/ms-default-constants.php index ed48318ccf..d2a2c27500 100644 --- a/wp-includes/ms-default-constants.php +++ b/wp-includes/ms-default-constants.php @@ -18,6 +18,9 @@ function ms_upload_constants() { global $wpdb; + // This filter is attached in ms-default-filters.php but that file is not included during SHORTINIT. + add_filter( 'default_site_option_ms_files_rewriting', '__return_true' ); + if ( ! get_site_option( 'ms_files_rewriting' ) ) return;