Skip to content

Commit 27e4b2f

Browse files
eyalacatomvdhoek1
authored andcommitted
Added wp_reset_postdata();
1 parent 703bff3 commit 27e4b2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Base/Repositories/AbstractRepository.php

+2
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ public function transform(WP_Post $post)
240240

241241
$data = $this->assignFields($data, $post);
242242

243+
wp_reset_postdata();
244+
243245
return $data;
244246
}
245247

0 commit comments

Comments
 (0)