3.0 breaks REST API calls
-
The upgrade to 3.0 appears to break the REST API:
~~~~
PHP Fatal error: Uncaught TypeError: Argument 2 passed to wp_statuses_rest_prepare_for_response() must be an instance of WP_Post, instance of stdClass given, called in …/wp-includes/class-wp-hook.php on line 307 and defined in /…/wp-content/plugins/lh-archived-post-status/includes/wp-statuses/inc/core/functions.php:541Stack trace:
#0 /…/wp-includes/class-wp-hook.php(307): wp_statuses_rest_prepare_for_response(Object(WP_REST_Response), Object(stdClass), Array)
#1 /…/wp-includes/plugin.php(191): WP_Hook->apply_filters(Object(WP_REST_Response), Array)
#2 /…/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1959): apply_filters(‘rest_prepare_po…’, Object(WP_REST_Response), Object(stdClass), Array)
#3 /…/wp-content/themes/…/lib/REST.php(157): WP_REST_Posts_Controller->prepare_item_for_response(Object(stdClass), Array)
#4 /… in /…/wp-content/plugins/lh-archived-post-status/includes/wp-statuses/inc/core/functions.php on line 541
~~~~Is there are known resolution for this issue?
Thank you.
The topic ‘3.0 breaks REST API calls’ is closed to new replies.