mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-11 14:22:26 +01:00
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
This commit is contained in:
parent
db118bdee8
commit
7d8078a215
@ -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