File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ public function get_coauthors_search_results( $request ): WP_REST_Response {
150
150
* @return WP_REST_Response
151
151
*/
152
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 () );
153
+ $ response = array ();
154
+
155
+ if ( ! $ this ->request_is_for_wp_block_post_type ( $ request ) && ! $ this ->is_pattern_sync_operation () ) {
156
+ $ this ->_build_authors_response ( $ response , $ request );
155
157
}
156
158
157
- $ response = array ();
158
- $ this ->_build_authors_response ( $ response , $ request );
159
159
return rest_ensure_response ( $ response );
160
160
}
161
161
You can’t perform that action at this time.
0 commit comments