Always return a bool, in case the data store lacks the `untrash_order` method.
This commit is contained in:
parent
7f8747f478
commit
530a7f08d0
|
@ -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 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue