make_db_current

The timeline below displays how wordpress function make_db_current has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.2

/**
 * Updates the database tables to a new schema.
 *
 * By default, updates all the tables to use the latest defined schema, but can also
 * be used to update a specific set of tables in wp_get_db_schema().
 *
 * @since 1.5.0
 *
 * @uses dbDelta
 *
 * @param string $tables Optional. Which set of tables to update. Default is 'all'.
 */
function make_db_current($tables = 'all')
{
    $alterations = dbDelta($tables);
    echo "<ol>\n";
    foreach ($alterations as $alteration) {
        echo "<li>{$alteration}</li>\n";
    }
    echo "</ol>\n";
}

WordPress Version: 3.7

/**
 * {@internal Missing Short Description}}
 *
 * {@internal Missing Long Description}}
 *
 * @since 1.5.0
 */
function make_db_current($tables = 'all')
{
    $alterations = dbDelta($tables);
    echo "<ol>\n";
    foreach ($alterations as $alteration) {
        echo "<li>{$alteration}</li>\n";
    }
    echo "</ol>\n";
}