Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Conversation

@antigenius
Copy link

Support for the mysql_* functions was deprecated in 5.5 and removed entirely in 7. This patch replaces a single call to mysql_error() with $wpdb->last_error, delegating the DBI work to WordPress core.

Matt Roberts added 2 commits February 2, 2018 10:14
The plugin previosuly relied on `mysql_error` which was deprecated in
5.5 and completely removed in 7 in favor of the MySQL Improved
extension. Regardless, WordPress provides a method of retrieving the
last MySQL error that is interface agnostic, `$wpdb->last_error`. By
using this functionality, the plugin no longer needs to be concerned
with implementation details instead delegating that responsibility to
WordPress Core.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant