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
This commit is contained in:
parent
c154aed908
commit
930d3b2a99
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user