Our team ended up in a place where the recursion of this post could result in an infinite loop and take down the server. We're addressing it by storing the ID of WP_Post objects and then ensuring that we only iterate over them up to a set threshold (in our case, 1).
Our team ended up in a place where the recursion of this post could result in an infinite loop and take down the server. We're addressing it by storing the ID of WP_Post objects and then ensuring that we only iterate over them up to a set threshold (in our case, 1).