[wp-trac] [WordPress Trac] #21800: Include error reporting on failed DB INSERT in term_relationships

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 5 13:45:57 UTC 2012


#21800: Include error reporting on failed DB INSERT in term_relationships
-----------------------------------+------------------------------
 Reporter:  jndetlefsen            |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Database               |     Version:  2.5
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------

Comment (by scribu):

 Replying to [comment:4 jndetlefsen]:
 > There are already cases where a failed INSERTS causes a WP_Error, for
 example in line 2088 in the same file, taxonomy.php.

 Yeah, then I guess we're just inconsistent. The idea is that we should fix
 this everywhere, not just when dealing with term relationships.

 A good start would be adding checks for all the functions inside
 taxonomy.php. Then we can move on to post.php etc.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21800#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list