[wp-trac] [WordPress Trac] #46287: Add insert_ignore() method to wpdb to avoid unecessary boilerplate code

WordPress Trac noreply at wordpress.org
Sat Nov 23 09:17:34 UTC 2024


#46287: Add insert_ignore() method to wpdb to avoid unecessary boilerplate code
-----------------------------+------------------------------
 Reporter:  lev0             |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Database         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------
Changes (by jondaley):

 * version:   => trunk


Comment:

 I see no one has replied to this in 6 years.  I came here looking for the
 same thing.  Obviously, this can be done with custom queries, but it seems
 like an easy thing to add to me as well.

 Is there a reason to not add it?

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


More information about the wp-trac mailing list