wpexpertsio/Post-SMTP

Reconsider use of 'wp_localize_string'

NielsdeBlaauw opened this issue · 0 comments

There a lot of calls like this in the code:

wp_localize_script( PostmanViewController::POSTMAN_SCRIPT, 'postman_input_basic_password', '#input_' . PostmanOptions::BASIC_AUTH_PASSWORD );

The third argument should be an array, but the bigger problem is this feels like abuse of the localize function to do something the script should do itself.