• Hello,

    I am testing this plugin in my DEV environment.

    The WPQuery’s output shows that the plugin is not loading the textdomain. The path the plugin supplies is very weird, and wrong:

    load_plugin_textdomain()
    html/plugins/lightbox-plus/lightboxplus.php:143
    html/plugins/http:/dev.local/html/plugins/lightbox-plus/languages/lightboxplus-ru_RU.mo

    Obviously, the ‘load_plugin_textdomain’ function takes wrong parameter as a relative plugin language path…

    Checking the file ‘lightboxplus.php` at line 143 proves, the the relative path is being passed with the *url* variable:

    load_plugin_textdomain( 'lightboxplus', false, $path = $g_lightbox_plus_url . 'languages' );

    More proper way to get the 3rd parameter for load_plugin_textdomain would be this:

    load_plugin_textdomain ('lightboxplus', FALSE, $path = trailingslashit (basename (dirname (__FILE__))) . 'languages' );

    Please correct that.

    Thank you.

    https://ww.wp.xz.cn/plugins/lightbox-plus/

The topic ‘Wrong argument in load_plugin_textdomain’ is closed to new replies.