nk-crew / ghostkit

Gutenberg blocks for WordPress

Home Page:https://www.ghostkit.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardcoded database table prefix

rastitkac opened this issue · comments

Hi there

'SELECT * FROM `wp_postmeta` WHERE (`meta_key` LIKE %s) LIMIT 50',
causes problems on installations not using the default table prefix wp_.

Solution is to use prefix property of the $wpdb object instead of hardcoding wp_postmeta like so: $wpdb->prefix . 'postmeta'.

Can you, please, patch this?