Is there a way to find the version number from the database? My server files were deleted, and I'd like to restore to the same version, for now. Thanks.
Is there a way to find the version number from the database? My server files were deleted, and I'd like to restore to the same version, for now. Thanks.
sort of, wp-includes/version.php contains 2 lines ..
one outputs the wordpress version, one holds a number that gets inserted into the database.
for instance, inside the 2.2 version.php you'll see:
$wp_version = '2.2';
$wp_db_version = 5183;
Inside the 2.0.10 file you'll see:
$wp_version = '2.0.10';
$wp_db_version = 3441;
If you go into your database and run a simple query on your options table you can find the second number:
SELECT *
FROM 'YOUR_options'
WHERE 'option_name' = "db_version";
then you just need to go through the version.phps to find that number.
Thanks much. I think that'll work. Cheers.
This topic has been closed to new replies.