Remove infinite loop by unlinking cache and datastore.

This commit is contained in:
Vedanshu Jain 2023-01-25 18:36:46 +05:30
parent 4db8cc8e26
commit 4837b80567
1 changed files with 1 additions and 1 deletions

View File

@ -51,6 +51,6 @@ class OrderCache extends ObjectCache {
* @return array|object|null The retrieved object, or null if it's not possible to retrieve an object by the given id.
*/
protected function get_from_datastore( $id ) {
return wc_get_order( $id );
return null;
}
}