Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Networking WordPress
    In reply to: resize images
    Thread Starter nicsco

    (@nicsco)

    Hi Andrea_r,

    thanks for the answer. Unfortunatly I’ve checked the plugins and the ones that could be useful are all outdated:

    • Resize on Upload -> compatible up to 2.8.3
    • Resize at Upload -> compatible up to 2.7
    • Resize at Upload Plus -> compatible up to 2.7

    I think I’ll check them to see if it is easly possible to make them work on WP3+ and multisite too.

    Hi thomasdk81,

    I had the same problem yesterday and today I’ve found the solution: as you are using a “mu-plugin”, you shoud not use load_plugin_textdomain but load_muplugin_textdomain

    From wp-includes/I18n.php :

    /**
     * Load the translated strings for a plugin residing in the mu-plugins dir.
     *
     * @since 3.0.0
     *
     * @param string $domain Unique identifier for retrieving translated strings
     * @param strings $mu_plugin_rel_path Relative to WPMU_PLUGIN_DIR directory in which
     * the MO file resides. Defaults is empty string.
     */
    function load_muplugin_textdomain( $domain, $mu_plugin_rel_path = '' ) {
    	$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
    	$path = WPMU_PLUGIN_DIR . '/' . ltrim( $mu_plugin_rel_path, '/' );
    	load_textdomain( $domain, trailingslashit( $path ) . "$domain-$locale.mo" );
    }

    so:

    load_muplugin_textdomain( 'wordpress-mu-domain-mapping', 'languages');

    should work.

Viewing 2 replies - 1 through 2 (of 2 total)