• I manage alot of different WordPress installations and updating them all manually is quite some work, despite it’s possible through wp-admin.

    Wouldn’t it be possible to create a script that calls functions in update-core.php to update WordPress? Cronjob would then do the job.

    (obviously for really important sites this would not be a good idea, but for smaller it would)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Seodev

    (@seodev)

    No one? 🙁

    Here’s a function in that file that should be used:
    function do_core_upgrade( $reinstall = false )

    Thread Starter Seodev

    (@seodev)

    hmm maybe it would be easier to bulid a bot that logs in and sends the post form…

    <form method="post" action="update-core.php?action=do-core-upgrade" name="upgrade" class="upgrade"><input type="hidden" id="_wpnonce" name="_wpnonce" value="79hh316" /><input type="hidden" name="_wp_http_referer" value="/wp-admin/update-core.php" /><p><input name="version" value="3.3.1" type="hidden"/><input name="locale" value="en_US" type="hidden"/><input type="submit" name="upgrade" id="upgrade" class="button button-primary" value="Update Now" />&nbsp;<a href="http://ww.wp.xz.cn/wordpress-3.3.1.zip" class="button">Download 3.3.1</a>&nbsp;</p></form></li></ul><p>While your site is being updated, it will be in maintenance mode. As soon as your updates are complete, your site will return to normal.</p>

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

The topic ‘Update WordPress with script?’ is closed to new replies.