From 930d3b2a9918d067b4579734280ae1d2dcbb1e36 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: https://develop.svn.wordpress.org/trunk@21881 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;