Fatal error: Uncaught Error: Class "WP_REST_Posts_Controller" not found in /home/discover/public_html/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php:17
Stack trace:
#0 /home/discover/public_html/wp-settings.php(287): require()
#1 /home/discover/public_html/wp-config.php(91): require_once('/home/discover/...')
#2 /home/discover/public_html/wp-load.php(50): require_once('/home/discover/...')
#3 /home/discover/public_html/wp-blog-header.php(13): require_once('/home/discover/...')
#4 /home/discover/public_html/index.php(17): require('/home/discover/...')
#5 {main}
thrown in /home/discover/public_html/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17