How do I find out what version of WordPress is run

2020-02-16 05:51发布

I have just taken over someone's hosted WordPress site. How do I find out what version he is running?

标签: wordpress
16条回答
你好瞎i
2楼-- · 2020-02-16 06:25

From experience with WordPress 3.8.3:

(1) Login as admin (2) Click on the W menu in the upper left corner (3) Click on menu item "About WordPress".

This will take you to .../wp-admin/about.php

There it will say "Welcome to WordPress 3.8.3"

查看更多
劫难
3楼-- · 2020-02-16 06:32

For any wordpress site, you can go to http://example.com/feed and check the following tag in the xml file to see the version number:

<generator>http://wordpress.org/?v=3.7</generator>

Here, 3.7 is the version installed.

查看更多
贼婆χ
4楼-- · 2020-02-16 06:35

If you came here to find out about how to check WordPress version programmatically, then you can do it with the following code.

// Get the WP Version global.
global $wp_version;

// Now use $wp_version which will return a string value.
echo '<pre>' . var_dump( $wp_version ) . '</pre>';
// Output: string '4.6.1' (length=5)

Cheers!

查看更多
迷人小祖宗
5楼-- · 2020-02-16 06:36

Because I can not comment to @Michelle 's answer, I post my trick here.

Instead of checking version on meta tag that usually is removed by customized theme.

Check the rss feed by append /feed to almost of any link from that site, then search for some keywords (wordpress, generator), you will have better chance.

<lastBuildDate>Fri, 29 May 2015 10:08:40 +0000</lastBuildDate>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>http://wordpress.org/?v=4.2.2</generator>
查看更多
做个烂人
6楼-- · 2020-02-16 06:36

can find in Dashboard At a Glance box

if that box is hidden - click on screen options at top-right corner and check on At a Glance

enter image description here

查看更多
兄弟一词,经得起流年.
7楼-- · 2020-02-16 06:36

I know I'm super late regarding this topic but there's this easy to use library where you can easily get the version numbers of Worpress, PHP, Apache, and MySQL, all-in-one.

It is called the Wordpress Environment (W18T) library

<?php
include_once 'W18T.class.php';
$environment = new W18T();
echo $environment;
?>

Output

{
    "platform": {
        "name": "WordPress",
        "version": "4.9.1"
    },
    "interpreter": {
        "name": "PHP",
        "version": "7.2.0"
    },
    "web_server": {
        "name": "Apache",
        "version": "2.4.16"
    },
    "database_server": {
        "name": "MySQL",
        "version": "5.7.20"
    },
    "operating_system": {
        "name": "Darwin",
        "version": "17.0.0"
    }
}

I hope it helps.

查看更多
登录 后发表回答