This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 12 years ago.
What I want to do
I want to upgrade Wordpress programmatically to a later version. That I want to do with PHP, lets say from /?upgrade_wp=true
I already know how to get the URL of the latest version so I don't having any problem with checking for versions or finding the right URL.
Answers I want
A link to a tutorial of how this is done.
A plugin that does this and not so much more.
A hint to the functions that I need to use.
Answers I don't want
The way to do it with SVN or subversion.
Answers containing Wordpress MU.
How to manually doing this.
How to do this with other code than PHP.
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 12 years ago.
What I want to do
I want to upgrade Wordpress programmatically to a later version. That I want to do with PHP, lets say from http://www.example/?upgrade_wp=true
I already know how to get the URL of the latest version so I don't having any problem with checking for versions or finding the right URL.
Answers I want
A link to a tutorial of how this is done.
A plugin that does this and not so much more.
A hint to the functions that I need to use.
Answers I don't want
The way to do it with SVN or subversion.
Answers containing Wordpress MU.
How to manually doing this.
How to do this with other code than PHP.
php
upgrade
Share
Improve this question
edited Feb 9, 2019 at 0:03
fuxia♦107k3939 gold badges255255 silver badges461461 bronze badges
asked Jun 10, 2012 at 19:34
Jens TörnellJens Törnell42311 gold badge1010 silver badges2626 bronze badges7
3Why would you want to install a plugin that does something WP already does out of the box?
– moraleida
CommentedJun 10, 2012 at 19:43
2Absent some example of a non-niche use case, Close-voted as too localized.
– Chip Bennett
CommentedJun 10, 2012 at 19:49
5Answers I want/don't want = invitation for being sarcastic, but I'll refrain myself & instead some useful info: study how InfiniteWP does it...
– brasofilo
CommentedJun 10, 2012 at 22:55
@brasofilo Thanks! InfiniteWP was just what I was going to build. Now I don't need to...
– Jens Törnell
CommentedJun 12, 2012 at 18:23
@ChipBennett How can update Wordpress from the outside be too localized? Many people have done that. Just not that many people show their code like InfiniteWP.
– Jens Törnell
CommentedJun 12, 2012 at 18:25
|
Show 2 more comments
2 Answers
2
Reset to default
2
A hint to the functions that I need to use.
I'm not sure why you'll want to mimic WP's default behavior, but most of the update logic lies on wp-admin/update-core.php
Check for do_core_upgrade().
The trigger function for core update seems to be wp_update_core(), which calls Core_Upgrader class (source).