Title: bloginfo(version) reports wrong version
Last modified: August 19, 2016

---

# bloginfo(version) reports wrong version

 *  [Ted Thompson](https://wordpress.org/support/users/yorokobi/)
 * (@yorokobi)
 * [18 years, 1 month ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/)
 * I’ve been all over the code – and as far as I see bloginfo(version) should directly
   report the value stored in the global variable $wp_version
 * Said global being defined in wp-admin/version.php
 * The value set in version.php is confirmed to be 2.5.1 however all checks of this
   variable, by bloginfo function or elsewhere such as the version checking script,
   reports back 2.5
 * I even went so far as to temporarily edit version.php so that $wp_version equaled‘
   AbCdEfG-2.5.1’ and still the system says 2.5 – I also removed a “;” to cause 
   a deliberate error, so as to confirm the file is really being accessed. It is.
 * I’m stumped…

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [che_gimeno](https://wordpress.org/support/users/che_gimeno/)
 * (@che_gimeno)
 * [18 years ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/#post-751798)
 * Hi! I have the same problem. I found that if you comment the line:
 * > add_action( ‘admin_notices’, ‘update_nag’, 3 );
 * in the file wp-includes/update.php, the message is no longer shown.
    I did this
   because I dont want my collaborators to see a message in the “Write new post”
   page telling them to warn me about an upgrade. But Im sure I didnt solve the 
   problem.
 * Hope its usefull
    (sorry if my English is not good! Im from Argentina =) )
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [18 years ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/#post-751804)
 * Do you have any caching in place? Such as an object cache?
 *  [remi](https://wordpress.org/support/users/remi/)
 * (@remi)
 * [18 years ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/#post-751805)
 * I have the exact same problem. `$wp_version` equals `"2.5.1"` in wp-admin/version.
   php but something must have overwritten it because when the template is displayed,`
   $wp_version` equals **`"2.5"`**!
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/#post-751806)
 * [http://wordpressphilippines.org/blog/has-your-wordpress-been-hacked-recently/](http://wordpressphilippines.org/blog/has-your-wordpress-been-hacked-recently/)
 * might want to do a little reading.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘bloginfo(version) reports wrong version’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 5 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/bloginfoversion-reports-wrong-version/#post-751806)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
