Skip to content

Commit 7b4857c

Browse files
committed
Increase and document the limit for term IDs
1 parent a0bf0e8 commit 7b4857c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/Generator/Product.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ protected static function generate_simple_product() {
423423
* Get a number of random term IDs for a specific taxonomy.
424424
*
425425
* @param string $taxonomy The taxonomy to get terms for.
426-
* @param int $limit The number of term IDs to get.
426+
* @param int $limit The number of term IDs to get. Maximum value of 50.
427427
*
428428
* @return array
429429
*/
@@ -435,7 +435,7 @@ protected static function get_term_ids( $taxonomy, $limit ) {
435435
if ( ! RandomRuntimeCache::exists( $taxonomy ) ) {
436436
$args = array(
437437
'taxonomy' => $taxonomy,
438-
'number' => 20,
438+
'number' => 50,
439439
'orderby' => 'count',
440440
'order' => 'ASC',
441441
'hide_empty' => false,

0 commit comments

Comments
 (0)