Skip to content

Commit 1d8d1d9

Browse files
committed
make/cli: When importing the handbook, query for all pages rather than the first 100.
This caused it to not "see" the posts > 100 and as a result create endless duplicates (over 8,000!) of the pages every 15 minutes. See wp-cli/handbook#567 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@14468 74240141-8908-4e6f-9713-ba540dce6ec7
1 parent a323927 commit 1d8d1d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wordpress.org/public_html/wp-content/plugins/wporg-cli/inc/class-markdown-import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Markdown_Import {
1313
private static $nonce_name = 'wporg-cli-markdown-source-nonce';
1414
private static $submit_name = 'wporg-cli-markdown-import';
1515
private static $supported_post_types = array( 'handbook' );
16-
private static $posts_per_page = 100;
16+
private static $posts_per_page = -1;
1717

1818
/**
1919
* Register our cron task if it doesn't already exist

0 commit comments

Comments
 (0)