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

WordPress Trac noreply at wordpress.org
Wed Oct 21 10:43:55 UTC 2020


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

Comment (by anand.au14):

 @davidbaumwald

 I liked your idea but upon exploring about it further I came across some
 recommendations given for when to use _n. So just got little bit confused.

    this functions should NOT be use in one item or more than one item
 scenarios, but for singular form and plural forms, which is not the same
 thing

 Some reference links of initial quotes by @SergeyBiryukov are here in this
 comment
 https://developer.wordpress.org/reference/functions/_n/#comment-2397

 @SergeyBiryukov Can you check if it is valid to use _n in this case? I
 will update the patch if required.

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


More information about the wp-trac mailing list