* @since 1.1 * * @param bool|int $multiple The provided $multiple value. * @return array */ public static function get_multiple_and_max( $multiple ) { $max_selection_number = 999; if ( is_numeric( $multiple ) ) { $multiple = (int) $multiple; /** * Treat -1 as unlimited just like in WordPress's get_posts (well, in this Kirki case, it's 999 :). * Also treat 0 as "unlimited" because 1 it self will disable the multiple selection. */ if ( 0 >= $multiple ) { $max_selection_number = 999; $multiple = true; } else { // If $multiple is > 1. if ( 1 < $multiple ) { $max_selection_number = $multiple; $multiple = true; } else { // Here $multiple === 1, that means, it's single mode select. $multiple = false; } } } return [ 'multiple' => $multiple, 'max_selection_number' => $max_selection_number, ]; } }
Fatal error: Uncaught Error: Class "Kirki\Field\ReactSelect" not found in /htdocs/wp-content/plugins/kirki/kirki-packages/control-select/src/Field/Select.php:18 Stack trace: #0 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(576): include() #1 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #2 /htdocs/wp-content/plugins/kirki/kirki-packages/control-select/src/Field/Dropdown_Pages.php(18): Composer\Autoload\ClassLoader->loadClass('Kirki\\Field\\Sel...') #3 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(576): include('/htdocs/wp-cont...') #4 /htdocs/wp-content/plugins/all-in-one-seo-pack/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/htdocs/wp-cont...') #5 [internal function]: Composer\Autoload\ClassLoader->loadClass('Kirki\\Field\\Dro...') #6 /htdocs/wp-content/plugins/kirki/kirki-packages/compatibility/src/Aliases.php(164): class_exists('Kirki\\Field\\Dro...') #7 /htdocs/wp-content/plugins/kirki/kirki-packages/compatibility/src/Aliases.php(151): Kirki\Compatibility\Aliases->add_aliases() #8 /htdocs/wp-content/plugins/kirki/inc/bootstrap.php(15): Kirki\Compatibility\Aliases->__construct() #9 /htdocs/wp-content/plugins/kirki/kirki.php(44): require_once('/htdocs/wp-cont...') #10 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #11 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #12 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #13 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #14 /htdocs/index.php(17): require('/htdocs/wp-blog...') #15 {main} thrown in /htdocs/wp-content/plugins/kirki/kirki-packages/control-select/src/Field/Select.php on line 18