函数原型
make_db_current( string $tables = ‘all’ )
函数描述
Updates the database tables to a new schema.
是否弃用
未弃用
函数参数
-
$tables
string
Optional - Which set of tables to update. Default is
'all'.Default:
'all'
函数返回值
无
函数位置
File: wp-admin/includes/upgrade.php.
函数源码
function make_db_current( $tables = 'all' ) {
$alterations = dbDelta( $tables );
echo "<ol>\n";
foreach ( $alterations as $alteration ) {
echo "<li>$alteration</li>\n";
}
echo "</ol>\n";
}
源码链接
变更日志
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |

