Code for Clone Children Bug
-
First of all, awesome plugin! When I check “Clone Children” on my custom post type, the Nested Pages plugin does not clone the children, only the selected post.
I dug through the code and found that in wp-content/plugins/wp-nested-pages/app/Entities/Post/PostCloner.php line 81 it should be
if ( $post_type === 'page' ) $post_type = ['page', 'np-redirect'];instead of
if ( $post_type = 'page' ) $post_type = ['page', 'np-redirect'];Do you mind correcting it for your next release. Thank you! 🙂
You must be logged in to reply to this topic.