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

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

    ./classes/YARPP_Widget.php:10:
    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.

    https://codex.wordpress.org/Function_Reference/plugins_url

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