[wp-trac] [WordPress Trac] #12028: wpmu_create_blog() breaks with multiple use

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 5 19:23:30 UTC 2011


#12028: wpmu_create_blog() breaks with multiple use
--------------------------+------------------
 Reporter:  wpmuguru      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  high          |   Milestone:  3.3
Component:  Multisite     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 dbDelta()'s repetitive statements could probably be simplified to:
 {{{
 if ( in_array( $queries, array( '', 'all', 'blog', 'global', 'ms' ), true
 ) )
     $queries = wp_get_db_schema( $queries );
 }}}

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


More information about the wp-trac mailing list