WordPress 4.0 upgrade broke my edit capabilities
-
My site was upgraded to WordPress 4.0, and after that I am unable to access any of the edit features of the site. It gives me this error.
Fatal error: Call to undefined function get_current_screen() in /home/coachigdon/arlrooftop.com/wp-content/plugins/food-and-drink-menu/cpts.php on line 604
I have tried restoring from backup on Dreamhost and via FTP from the .old directory. Neither fixes the issue. Line 604 is this.
$screen = get_current_screen();
followed by these 2 lines
if ( $screen->post_type == FDM_MENUITEM_POST_TYPE && !empty( $_GET[‘section’] ) ) {
$section = (int) $_GET[‘section’];Can anyone suggest how I can either clean up the cpts.php file, or how I might recover my edit capabilities?
- The topic ‘WordPress 4.0 upgrade broke my edit capabilities’ is closed to new replies.