Changeset 4285 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/wordcamp-site-cloner.php
- Timestamp:
- 10/21/2016 09:12:32 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-site-cloner/wordcamp-site-cloner.php
r4280 r4285 184 184 * This is called via WP Cron. 185 185 * 186 * @todo - Reintroduce batching from `1112.3.diff` to get more than 500 sites 186 * @todo - Reintroduce batching from `1112.3.diff` to get more than 500 sites. Will need to fix transient bug 187 * mentioned in `get_wordcamp_sites()` first. 187 188 */ 188 189 function prime_wordcamp_sites() { … … 217 218 218 219 $wordcamp_query = new \WP_Query( array( 220 /* 221 * todo - There's a bug where a `posts_per_page` value greater than ~250-300 will result in 222 * `set_site_transient()` calling `add_site_option()` rather than `update_site_option()`, 223 * and then `get_site_transient()` fails, so `sites_endpoint()` returns an empty array. 224 */ 219 225 'post_type' => WCPT_POST_TYPE_ID, 220 226 'post_status' => \WordCamp_Loader::get_public_post_statuses(), 221 'posts_per_page' => 500,227 'posts_per_page' => 250, 222 228 'meta_key' => 'Start Date (YYYY-mm-dd)', 223 229 'orderby' => 'meta_value_num',
Note: See TracChangeset
for help on using the changeset viewer.