Skip to content

Commit

Permalink
Fixed failing font family deletion test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbking committed Oct 18, 2023
1 parent cfc98f1 commit 71e3f40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function delete_item( $request ) {
$result = $font_family->uninstall();

if ( is_wp_error( $result ) ) {
if ( 'font_family_not_found' === $result->get_error_code() ) {
if ( 'font_family_slug_not_found' === $result->get_error_code() ) {
$result->add_data( array( 'status' => 404 ) );
} else {
$result->add_data( array( 'status' => 500 ) );
Expand Down

0 comments on commit 71e3f40

Please sign in to comment.