• Resolved pik256

    (@pik256)


    There is a broken piece of code in plugin options update. In effect I could not change any option.
    Plugin uses mysql_real_escape_string() function, however, wordpress uses mysqli instead of mysql library (if it is available).
    When I replaced mysql_real_escape_string with mysqli_real_escape_string then I could save options properly. But wordpress provides universal function esc_sql() and it should be used instead.

    https://wordpress.org/plugins/resize-image-after-upload/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks for the comment. We’re about to release quite a major update in the next day or two so I’ll integrate the comments you’ve suggested in this version. Out of curiosity, what version of PHP are you using?

    Thanks
    Phil

    Hi,

    This should now be resolved in v1.6 to use esc_sql().

    Kind regards
    Phil

    Thread Starter pik256

    (@pik256)

    thanks
    My wordpress runs on Windows 2012 (IIS 8.5 + PHP 5.5.10 + MySQL 5.6.16)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using deprecated functions’ is closed to new replies.