Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the subscribe-to-comments domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home1/davoscri/public_html/wp-includes/functions.php on line 6170

Warning: Cannot modify header information - headers already sent by (output started at /home1/davoscri/public_html/wp-includes/functions.php:6170) in /home1/davoscri/public_html/wp-includes/feed-rss2-comments.php on line 8
Comments on: WordPress MU Domain Mapping plugin and Multisite mu-plugins http://davoscript.com/blog/desarrollo/wordpress-mu-domain-mapping-plugin-and-multisite-mu-plugins/ Desarrollo de Software, Aplicaciones y Sitios Web Thu, 22 Mar 2012 18:31:12 +0000 hourly 1 https://wordpress.org/?v=7.0 By: David Carroll http://davoscript.com/blog/desarrollo/wordpress-mu-domain-mapping-plugin-and-multisite-mu-plugins/comment-page-1/#comment-196 Thu, 23 Feb 2012 08:51:26 +0000 http://davoscript.com/?p=115#comment-196 Davo,

Thanks for sharing your notes with moving a plugin to the mu-plugins directory using MU Domain Mapping plugin. This domain_mapping_plugins_uri() function is a filter called by the plugins_url() function. A comment indicates this function “fixes the plugins_url”. However, it only appears to recreate the the same url produced in the plugins_url() function. I wonder if this was once a bug that has since been fixed in recent WordPress releases.

Have you tested just commenting out the line:

add_filter( ‘plugins_url’, ‘domain_mapping_plugins_uri’, 1 );

Also, one problem with domain_mapping_plugins_uri() is the use of get_option(‘site_url’) instead of site_url() which would return https if SSL is enabled.

You might want to consider the following:

// fixes the plugins_url
function domain_mapping_plugins_uri2( $full_url, $path=NULL, $plugin=NULL ) {
$plugins_dir = ( false !== strpos($full_url, ‘wp-content/mu-plugins’) ) ? ‘wp-content/mu-plugins’ : ‘wp-content/plugins’;
return site_url() . ‘/’ . strstr( $url, $plugins_dir );
}

I applied a few other optimizations to the code.

]]>
By: Davoscript » Front-end Editor and Wordpress MU Domain Mapping plugins http://davoscript.com/blog/desarrollo/wordpress-mu-domain-mapping-plugin-and-multisite-mu-plugins/comment-page-1/#comment-195 Wed, 08 Feb 2012 04:56:01 +0000 http://davoscript.com/?p=115#comment-195 […] same problem described in this post I’d say forget about hacking Front-end Editor plugin and try this new small fix in Domain Mapping plugin […]

]]>