We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 815c4c3 commit a578534Copy full SHA for a578534
php/class-coauthors-endpoint.php
@@ -150,12 +150,12 @@ public function get_coauthors_search_results( $request ): WP_REST_Response {
150
* @return WP_REST_Response
151
*/
152
public function get_coauthors( $request ): WP_REST_Response {
153
- if ( $this->request_is_for_wp_block_post_type( $request ) || $this->is_pattern_sync_operation() ) {
154
- return rest_ensure_response( array() );
+ $response = array();
+
155
+ if ( ! $this->request_is_for_wp_block_post_type( $request ) && ! $this->is_pattern_sync_operation() ) {
156
+ $this->_build_authors_response( $response, $request );
157
}
158
- $response = array();
- $this->_build_authors_response( $response, $request );
159
return rest_ensure_response( $response );
160
161
0 commit comments