bloginfo(version) reports wrong version (5 posts)

  1. Ted Thompson
    Posted 8 years ago #

    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...

  2. che_gimeno
    Posted 8 years ago #

    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 =) )

  3. Do you have any caching in place? Such as an object cache?

  4. Rémi Prévost
    Posted 8 years ago #

    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"!

  5. whooami
    Posted 8 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.