Support » Plugin: YARPP - Yet Another Related Posts Plugin » support for multilingual

  • The plugin load CSS resource without consideration subdomain specified for actual language:

    wp_enqueue_style(‘yarppWidgetCss’, YARPP_URL.’/style/widget.css’);

    The YARPP_URL uses plugins_url() function incorrectly in the global context on the main plugin file. So it’s trying to load CSS file from wrong domain.

    The plugins_url() function should not be called in the global context of plugins, but rather in a hook like “init” or “admin_init” to ensure that the “plugins_url” filters are already hooked at the time the function is called.

  • The topic ‘support for multilingual’ is closed to new replies.