WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Version check? (5 posts)

  1. Doodlebee
    Member
    Posted 5 years ago #

    Okay, this is going to sound like a really stupid question, but I've been looking for the answer to this all weekend to no avail. Obviously I haven't developed a lot of plugins, but I have a few in the works that were fun to do, and I've been using for practice. I have a couple that I think are release-worthy. but before I do so, I have one thing stumping me.

    *How* in the world does a person's WP installation know if the version currently installed is the most recent one? For example, I see this for several plugins on my back end:

    "There is a new version of [plugin name] available. View version [version number] Details or upgrade automatically."

    How in the world is that done? The closest I could find was in a very old NextGen Gallery plugin I have, where there appears to be some sort of version script hosted on the plugin author's server. But I've googled and searched and looked, and can't find *anything* on how you make this neat little snippet of code so people can be told you've upgraded things. Would someone like to smack me in the face with the answer to this one? (and possibly some links to how you do it/what goes in this mysterious version file?) Or is this something the SVN handles now?

  2. whooami
    Member
    Posted 5 years ago #

    look inside wp-includes/update.php

  3. Doodlebee
    Member
    Posted 5 years ago #

    Thank you so much whoo :)

  4. Doodlebee
    Member
    Posted 5 years ago #

    ...and yes! Perfect! thanks!

  5. whooami
    Member
    Posted 5 years ago #

    youre welcome, I didnt know if that was actually going to help, so Im glad to see it did.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.