| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/bulk-editor/domain/updates/ |
Upload File : |
<?php
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Domain\Updates;
/**
* This class holds the rule for how many updates a single batch may contain.
*/
class Batch_Limit {
/**
* The maximum number of updates in a single batch.
*/
public const MAX_ITEMS = 20;
/**
* Whether the given number of updates is within the batch limit.
*
* @param int $count The number of updates in the batch.
*
* @return bool Whether the given number of updates is within the batch limit.
*/
public static function is_within_limit( int $count ): bool {
return $count <= self::MAX_ITEMS;
}
}