Changeset 28305
- Timestamp:
- 05/06/2014 05:26:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r27998 r28305 1386 1386 return true; 1387 1387 //didn't find it try to create it. 1388 $ q = $wpdb->query($create_ddl);1388 $wpdb->query($create_ddl); 1389 1389 // we cannot directly tell that whether this succeeded! 1390 1390 if ( $wpdb->get_var("SHOW TABLES LIKE '$table_name'") == $table_name ) … … 1448 1448 } 1449 1449 //didn't find it try to create it. 1450 $ q = $wpdb->query($create_ddl);1450 $wpdb->query($create_ddl); 1451 1451 // we cannot directly tell that whether this succeeded! 1452 1452 foreach ($wpdb->get_col("DESC $table_name", 0) as $column ) { … … 1556 1556 $queries = array_filter( $queries ); 1557 1557 } 1558 1559 /** 1558 1559 /** 1560 1560 * Filter the dbDelta SQL queries. 1561 1561 * … … 1585 1585 } 1586 1586 } 1587 1588 /** 1587 1588 /** 1589 1589 * Filter the dbDelta SQL queries for creating tables and/or databases. 1590 1590 * 1591 1591 * Queries filterable via this hook contain "CREATE TABLE" or "CREATE DATABASE". 1592 * 1592 * 1593 1593 * @since 3.3.0 1594 1594 * … … 1597 1597 $cqueries = apply_filters( 'dbdelta_create_queries', $cqueries ); 1598 1598 1599 /** 1599 /** 1600 1600 * Filter the dbDelta SQL queries for inserting or updating. 1601 1601 * 1602 1602 * Queries filterable via this hook contain "INSERT INTO" or "UPDATE". 1603 * 1603 * 1604 1604 * @since 3.3.0 1605 1605 * … … 1795 1795 */ 1796 1796 function make_db_current_silent( $tables = 'all' ) { 1797 $alterations =dbDelta( $tables );1797 dbDelta( $tables ); 1798 1798 } 1799 1799
Note: See TracChangeset
for help on using the changeset viewer.