[resolved] Disable Version Check (3 posts)

  1. therealhopeful
    Posted 6 years ago #

    Hello. I have a legacy website that I am trying to get operational again. This is simply for demo purposes, so I am not interested in upgrading to the latest version of WordPress. I have already tried this, and it breaks the custom theme I wrote for the site. I do not have the time to re-write the theme.

    What I would like to do is disable the version check in the admin panel. Is there a way to do this, or am I on my own? Thanks.

  2. MichaelH
    Posted 6 years ago #

  3. therealhopeful
    Posted 6 years ago #

    Thanks, Michael, but a plugin isn't very helpful when WordPress won't even give me access to the admin page, unless I upgrade. I think I solved the problem, though. I commented out these lines near the top of admin.php, and that seemed to do the trick:

    if ( get_option('db_version') != $wp_db_version ) {
    	wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer=' . urlencode(stripslashes($_SERVER['REQUEST_URI'])));

Topic Closed

This topic has been closed to new replies.

About this Topic