therealhopeful
Member
Posted 3 weeks 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.
therealhopeful
Member
Posted 3 weeks 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'])));
exit;
}