[wp-trac] [WordPress Trac] #21922: Suppress SQL errors on MS blog creation check designed to fail

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 18 22:15:03 UTC 2012


#21922: Suppress SQL errors on MS blog creation check designed to fail
-----------------------+--------------------------
 Reporter:  bpetty     |       Type:  defect (bug)
   Status:  new        |   Priority:  normal
Milestone:  3.5        |  Component:  Multisite
  Version:  3.4.2      |   Severity:  normal
 Keywords:  has-patch  |
-----------------------+--------------------------
 In install_blog(), the query that checks for posts and aborts blog
 creation if it finds any (since the new blog would overwrite an existing
 blog) is meant to fail since normally, the tables in the query shouldn't
 exist.

 This patch changes the query to a simple DESCRIBE check, and suppresses
 errors from the statement that is working as designed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21922>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list