سؤال

Don't ask me how but I just did a huge mistake, and I need to regenerate the version.php file in wordpress.

Do you know if there is a way do to that, or another way to get the current wp version without this file ?

Thanks a lot.

هل كانت مفيدة؟

المحلول

Download a new version of Wordpress

and take the original version.php file

(is this)

<?php
/**
* The WordPress version string
*
* @global string $wp_version
*/
$wp_version = '3.8.1';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB      schema.
*
* @global int $wp_db_version
*/
$wp_db_version = 26691;

/**
* Holds the TinyMCE version
*
* @global string $tinymce_version
*/
$tinymce_version = '359-20131026';

/**
* Holds the required PHP version
*
* @global string $required_php_version
*/
$required_php_version = '5.2.4';

/**
* Holds the required MySQL version
*
* @global string $required_mysql_version
*/
$required_mysql_version = '5.0';
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top