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', ...
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 ...
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 ...
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', '...
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'
2
votes
Where does WordPress store version number?
add_action( 'after_setup_theme', 'getWPVersion' );
function getWPVersion() {
echo $GLOBALS['wp_version'];
}
2
votes
Relative security of different releases of WordPress
Wordpress's current security policy is at https://wordpress.org/about/security/:
When a security update is pushed for the current stable release of WordPress, the core team will also push security ...
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. ...
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' );
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 ...
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.
...
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/...
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 ...
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 ...
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 ...
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);
...
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 ...
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);
...
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 ...
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 ...
1
vote
Determining WordPress' Version from the Host's Command Line?
Please use the below command to check the current wordpress version:
# grep wp_version wp-includes/version.php
Output sample:
root@vps [/home/dedu/public_html]# grep wp_version wp-includes/version....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wordpress-version × 81updates × 15
plugin-development × 6
upgrade × 6
automatic-updates × 6
plugins × 5
security × 4
wordpress.org × 4
wp-admin × 3
php × 2
multisite × 2
javascript × 2
database × 2
admin × 2
errors × 2
wp-enqueue-script × 2
gallery × 2
api × 2
installation × 2
debug × 2
custom-post-types × 1
wp-query × 1
images × 1
filters × 1
themes × 1