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

WordPress Trac noreply at wordpress.org
Wed Nov 17 03:49:16 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 SergeyBiryukov):

 Replying to [comment:90 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.

 It looks like this dates back to [29840] / #25614, where I simply missed
 that `wp_load_translations_early()` should have been used instead. It was
 also pointed out in comment:5:ticket:25614. So it should be safe to use it
 there too.

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


More information about the wp-trac mailing list