[wp-trac] [WordPress Trac] #32315: $wpdb->insert fails without error msg

WordPress Trac noreply at wordpress.org
Tue Nov 16 19:11:59 UTC 2021


#32315: $wpdb->insert fails without error msg
--------------------------------------+-----------------------------
 Reporter:  dlt101                    |       Owner:  hellofromTonya
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.9
Component:  Database                  |     Version:  4.2.1
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by johnbillion):

 I wonder why the `wpdb::_real_escape()` method is the odd one out. Instead
 of calling `wp_load_translations_early()` it falls back to a non-localised
 string. Ref: https://github.com/WordPress/wordpress-
 develop/blob/df3601dff4ec899e5b522d40ea4ccb0815014dc2/src/wp-includes/wp-
 db.php#L1250-L1255

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/32315#comment:90>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list