WordPress.org

Forums

Global Content Blocks
[resolved] WordPress 3.9 compatibility - mysql_real_escape_string (3 posts)

  1. Mark
    Member
    Posted 1 year ago #

    Hi!

    I notice that this plugin uses "mysql_real_escape_string" a lot instead of "sanitize_text_field".

    As WP 3.9 is switching to mysqli, is this going to break the plugin in its current state? Are there plans for an updated release?

    https://wordpress.org/plugins/global-content-blocks/

  2. benz1
    Member
    Plugin Author

    Posted 1 year ago #

    The mysql extension is going to be deprecated but that doesn't mean it will no longer work, it will probably be several years before it is removed as it is widely used.

    However, I will be releasing a new version within the next few months that uses the WP database abstraction layer.

    Ben

  3. benz1
    Member
    Plugin Author

    Posted 1 year ago #

    FYI, version 2.0.0 of the plugin has just been uploaded to the WP repository and all calls to mysql_real_escape_string have been removed and all data has been moved to the standard WP database structure, via the Options API.

    Ben

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Global Content Blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic