bug in the code
-
You use in the wp-content/plugins/translatepress-multilingual/includes/class-query.php this:
if ( $this->db->get_var( “SHOW TABLES LIKE ‘$table_name'” ) != $table_name )
I had a client who had 2 tables “wp_trp_dictionary_en_gb_nl-nl” and “wp_trp_dictionary_en_gb_nl_nl” for unknown reason in the database.
SHOW TABLES LIKE “wp_trp_dictionary_en_gb_nl_nl” returns 2 tables:
wp_trp_dictionary_en_gb_nl-nl
wp_trp_dictionary_en_gb_nl_nl(the wrong one first)
Escape table name like this:
SHOW TABLES LIKE “wp\_trp\_dictionary\_en\_gb\_nl\_nl”
LIKE uses 2 special characters:
‘%’ = “.*” = anything
‘_’ = “.” = any one character
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bug in the code’ is closed to new replies.