MU Plugins not being supported properly [with solution]
-
Hi there,
We have a couple
mu-plugins
usingplugin_dir_url()
, which is fully supported by WordPress, but not the plugin.My fix was adding a consideration of what the current directory is, and if it’s inside
mu-plugins
handling it properly.The new
domain_mapping_plugins_uri()
function (line 642):// fixes the plugins_url function domain_mapping_plugins_uri( $full_url, $path=NULL, $plugin=NULL ) { if ( stripos( $full_url, MUPLUGINDIR ) > -1 ) { return get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, MUPLUGINDIR ) - 1 ); } return get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, PLUGINDIR ) - 1 ); }
- The topic ‘MU Plugins not being supported properly [with solution]’ is closed to new replies.