rebase on oct-10-2023
This commit is contained in:
@@ -1761,8 +1761,10 @@ class WP_REST_Comments_Controller extends WP_REST_Controller {
|
||||
|
||||
$posts_controller = $post_type->get_rest_controller();
|
||||
|
||||
// Ensure the posts controller is specifically a WP_REST_Posts_Controller instance
|
||||
// before using methods specific to that controller.
|
||||
/*
|
||||
* Ensure the posts controller is specifically a WP_REST_Posts_Controller instance
|
||||
* before using methods specific to that controller.
|
||||
*/
|
||||
if ( ! $posts_controller instanceof WP_REST_Posts_Controller ) {
|
||||
$posts_controller = new WP_REST_Posts_Controller( $post->post_type );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user