Always return a bool, in case the data store lacks the `untrash_order` method.

This commit is contained in:
barryhughes 2023-06-09 13:52:21 -07:00
parent 7f8747f478
commit 530a7f08d0
1 changed files with 1 additions and 1 deletions

View File

@ -2295,6 +2295,6 @@ class WC_Order extends WC_Abstract_Order {
* @return bool If the operation was successful. * @return bool If the operation was successful.
*/ */
public function untrash(): bool { public function untrash(): bool {
return $this->data_store->untrash_order( $this ); return (bool) $this->data_store->untrash_order( $this );
} }
} }