Skip to content
Prev Previous commit
Fix merge conflict
  • Loading branch information
creativecoder committed Feb 6, 2024
commit 3c38c161896f36c6e49724e106a3d8dad4020af8
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ public function get_item( $request ) {
$slug = $request->get_param( 'slug' );
$collection = WP_Font_Library::get_instance()->get_font_collection( $slug );

<<<<<<< HEAD
=======
// @TODO: remove `is_wp_error` check once WP trunk is updated to return null when a collection is not found.
>>>>>>> 9b1ab35b1c (Account for WP_Error returned from WP_Font_Library::get_font_collection in current WP trunk)
if ( ! $collection || is_wp_error( $collection ) ) {
return new WP_Error( 'rest_font_collection_not_found', __( 'Font collection not found.' ), array( 'status' => 404 ) );
}
Expand Down