• andamira

    (@andamira)


    Hi, first of all thankyou so much for this plugin.

    I just want to notify you of the presence deprecated function in your code:

    Argument in load_plugin_textdomain()
    Used in wp-content/plugins/wp-add-mime-types/wp-add-mime-types.php on line 12.
    No alternative available.
    Deprecated in version 2.7.

    https://ww.wp.xz.cn/plugins/wp-add-mime-types/

Viewing 2 replies - 1 through 2 (of 2 total)
  • This can be fixed by changing the line:
    load_plugin_textdomain('wp-add-mime-types', '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . '/lang/');

    to:
    load_plugin_textdomain('wp-add-mime-types', false, '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . '/lang/');

    Could you please update the plugin with the fix? Thank you

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

The topic ‘deprecated function’ is closed to new replies.