You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the 100 pages limit, pages will not be exported if almost all parent pages are deactivated, but a large number of children are still active.
This is fixed by removing the limit and excluding the parents from the query:
Partially fixed in e5e2c9c, except for grandchild pages. WPQuery will only exclude direct descendants, while active grandchild pages are retrieved from the database even though they are not displayed in the final result. If too many grandchild pages are present, they will prevent following active pages from being read.
Because of the 100 pages limit, pages will not be exported if almost all parent pages are deactivated, but a large number of children are still active.
This is fixed by removing the limit and excluding the parents from the query:
in get_pages_order():
$all_pages = get_pages( array( 'sort_column' => 'menu_order,post_title', 'exclude' => implode(',', $this->inactive_pages), 'exclude_tree' => implode(',', $this->inactive_pages), -> exclude inactive parent 'post_status' => 'publish', 'post_type' => 'page', // 'number' => $limit -> deactivate limit ) );
in export_pages():
$args = array( 'post__not_in' => $this->inactive_pages, 'post_parent__not_in' => $this->inactive_pages, -> exclude inactive parent 'numberposts' => $limit, 'posts_per_page' => $limit, 'post_status' => 'publish', 'post_type' => 'page', 'post_password' => '' );
The text was updated successfully, but these errors were encountered: