• erikdemarco


    Just a suggestion, all your developer should turn on WP_DEBUG. So you can see all warning in your plugin. There is many!

    for example in dokan pro. on product list admin page. I got this error:

    ‘Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/xxx/web/xxxxx.com/public_html/wp-includes/functions.php on line 5313’

    The error because you use a string instead of array for parameter3 in ‘wp_localize_script()’

    For reference, please see WordPress Code reference for
    WP_Scripts::localize( string $handle, string $object_name, array $l10n )

Viewing 1 replies (of 1 total)
  • Plugin Support Rafy Al Nawaz Sharif


    Hi @erikdemarco ,

    We also noticed the error message you mentioned, and a Pull Request was merged in our private repository immediately. The fix will be available in our next release.

    Since this is an issue with our paid version of the plugin, I am assuming that you have already opened related tickets in our support forum. If you could let me know the ticket numbers for the other warnings you mentioned, it would be much appreciated, and our team will provide a fix for the warning messages you noticed.

    Moreover, I can also confirm that our Development and QA Team keeps the WP_DEBUG as true while working.

    Thank you.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.