Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move rest api loads into conditional that confirms in rest mode (#6649)
* Move rest api loads into conditional that confirms in rest mode The rest api files should only be loaded if the site is in rest server mode. I initially tested using `defined( 'REST_REQUEST') && REST_REQUEST` however this wasn't detected and created errors, thus use of class_exists checking for WP_REST_Controller
- Loading branch information