PostgreSQL-For-Wordpress / postgresql-for-wordpress

A maintained fork of https://wordpress.org/plugins/postgresql-for-wordpress/
GNU General Public License v2.0
220 stars 71 forks source link

Should we implement at the wpdb layer and remove our eval code? #56

Open mattbucci opened 10 months ago

mattbucci commented 10 months ago

Monkey patching wpdb means that we can pull in changes in behavior from WordPress core when they are introduced, implementing our own version could cause drift, but eval'ing the string replaced wpdb class like we do in core.php seems like bad practice. What if users want to disable eval for security reasons? They wouldn't be able to use this plugin.

Wouldn't it be more straightforward to just provide a wpdb class of our own?

This is an open discussion