Skip to main content
10 votes
Accepted

How to remove the WordPress version from some .css/.js files

You can check for the current handle before removing the version. Here's an example (untested): add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999, 2 ); add_filter( 'script_loader_src', ...
birgire's user avatar
  • 67.4k
8 votes
Accepted

How to find out when Wordpress version last updated

You could check the date stamps of the files on your server, using an FTP client. Edit: taking Mark's comment in consideration, it's probably best to check the modification date of the version.php ...
Jelle Wielsma's user avatar
6 votes

Why does the WordPress official website show a fake release date?

It's not incorrect, let alone 'fake'. Security updates are often released as minor versions of previous releases. See the release notes on the page you linked to: From the WordPress 4.9.2 release ...
Jacob Peattie's user avatar
5 votes

How to remove the WordPress version from some .css/.js files

Since this question was written, a lot has changed with WordPress. Here is a new way to prevent WordPress from displaying its version number: // remove version from head remove_action('wp_head', '...
Amr's user avatar
  • 158
3 votes

Relative security of different releases of WordPress

Wordpress's current security policy is at https://wordpress.org/about/security/: While only the latest version of WordPress is officially supported, the Security Team also backports fixes to older ...
mhsmith's user avatar
  • 131
3 votes

Getting version number of latest Wordpress release

For bash users a one liner: (Install jq if not there) curl -s "https://api.wordpress.org/core/version-check/1.7/" | jq -r '[.offers[]|select(.response=="upgrade")][0].version'
Riddhesh Sanghvi's user avatar
2 votes

Where does WordPress store version number?

add_action( 'after_setup_theme', 'getWPVersion' ); function getWPVersion() { echo $GLOBALS['wp_version']; }
Wasim Khan's user avatar
2 votes

Relative security of different releases of WordPress

are the updated newer major-versions significantly more secure than updated older ones? This is quite ambiguous. How significant or insignificant security changes might be, it is totally irrelevant. ...
Pieter Goosen's user avatar
2 votes

How do I remove the WordPress version from the browser source?

Your code works for me in version 4.7.2 with 2016 theme, but a slightly simpler version is to remove the action entirely rather than filter the output: remove_action( 'wp_head', 'wp_generator' );
Milo's user avatar
  • 78.5k
2 votes
Accepted

When will the 4.3 branch become EOL

It is EOL. WordPress will backport security fixes when it can, but makes no promises for updates for anything except the latest version. You should have updated 3 years ago. WordPress will be ...
Jacob Peattie's user avatar
1 vote

Is it possible to remove the version number from the wp-login.php page?

Of course, it's possible to remove the version number. Follow these steps: Login to cPanel. Click on File Manager icon. Choose document root or the public_html directory. Open wp-content folder. ...
Md. Ehsanul Haque Kanan's user avatar
1 vote

How best to handle database version dependence (from $wp_db_version)

I sorted this out. It looks like the core team rolls out new versions of the database with their beta program. So, it's plenty easy to get advance warning. And, the database upgrades live in wp-admin/...
O. Jones's user avatar
  • 471
1 vote
Accepted

Where in the backend can I get information about the current WordPress version I am using?

It's not right in front of you, but you can obtain this information from the back end. Go to Tools -> Site Health -> Click on Info tab. Clicking on the first drop-down ('Wordpress') will get you ...
Dave White's user avatar
1 vote

Where in the backend can I get information about the current WordPress version I am using?

In functions.php of your child theme, insert the following code: if(is_admin()) { function wpse_version_check() { global $wp_version; echo '<div>Current version of WordPress ...
Frank P. Walentynowicz's user avatar
1 vote

Change the version of default style.css in wordpress

It's using 5.2.3 because no version was specified when style.css was enqueued/registered. So it fell back to the version of WordPress. If you pass in a version when calling wp_enqueue_style, it will ...
Tom J Nowell's user avatar
  • 59.6k
1 vote

Wordpress Version check with PHP

Try checking the attribute contents before setting the value: $generator = ''; // clear previous value for ($i = 0; $i < $metas->length; $i++) { $meta = $metas->item($i); ...
majick's user avatar
  • 5,091
1 vote
Accepted

Where to find WordPress API changes for each version released

Codex (official WordPress documentation wiki) has a list of WordPress Versions with links to changelogs and release posts for each. Though information in those changelogs can be lacking. Note that WP ...
Rarst's user avatar
  • 99.7k
1 vote

How to remove the WordPress version from some .css/.js files

To target a specific file // remove version from scripts and styles function remove_version_scripts_styles($src) { if (strpos($src, 'yourfile.js')) { $src = remove_query_arg('ver', $src); ...
Haveigonemental's user avatar
1 vote

Relative security of different releases of WordPress

Always use the most recent version of WordPress, security fixes are always made to the latest version. The only time this isn't the case is in that rare situation that an older version of WordPress ...
Tom J Nowell's user avatar
  • 59.6k
1 vote

Determining WordPress' Version from the Host's Command Line?

If you want to use that information for something in a script, you can do this: VERSION=$(grep "wp_version =" wp-includes/version.php | awk '{print $3}' | sed "s/'//g" | sed "s/;//g") That would ...
Juanjo Espí's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible