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

WordPress Trac noreply at wordpress.org
Tue Nov 16 03:42:51 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:87 hellofromTonya]:
 > @SergeyBiryukov see @johnbillion's comment [https://github.com/WordPress
 /wordpress-develop/pull/1874#issuecomment-969226836 here in the committed
 PR]. What do you think? Remove the `function_exists( '__' )` guards?

 Thanks! Just finished reading the PR discussion. Yeah, I think we can use
 `wp_load_translations_early()` to replace those guards, for consistency
 with how it's done in `::prepare()` and other methods.

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


More information about the wp-trac mailing list