12

Given a copy of WordPress installation, how do I find out what version it is from the source code?

17

You can find the version in wp-includes/version.php, the $wp_version variable.

It can also be found in the readme.html file in the root of the WordPress folder.

  • 3
    If you happen to be looking at a development version of WordPress, the number in readme.html may not be accurate. For example, in the WordPress 3.6 development versions, readme.html continued to show "3.5" until Release Candidate 1. – Ben Miller Aug 2 '13 at 17:05
  • Seems like the version is no longer included in readme.html. I am using wordpress 5.2. – Alex Jun 2 at 3:40
2

open your site and in meta tag with name="generator" for example

<meta name="generator" content="WordPress 3.5.2" />
  • 4
    though a valid way of finding the version, this is not from the source code, rather its from the output of running the source code. – icc97 Aug 2 '13 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.