e_register. Please add them directly, or on init.', 'kirki' ), '3.0.10' ); } parent::maybe_show_fontawesome_nag( $args ); // Early exit if 'type' is not defined. if ( ! isset( $args['type'] ) ) { return; } $args = self::migrate_css_vars( $args ); $str = str_replace( [ '-', '_' ], ' ', $args['type'] ); $classname = '\Kirki\Field\\' . str_replace( ' ', '_', ucwords( $str ) ); $config = Config::get_instance( $config_id )->get_config(); $args['kirki_config'] = isset( $args['kirki_config'] ) ? $args['kirki_config'] : $config_id; unset( $config['id'] ); $args = wp_parse_args( $args, $config ); if ( class_exists( $classname ) ) { unset( $args['type'] ); new $classname( $args ); return; } new Field( $config_id, $args ); } /** * Remove a control. * * @static * @access public * @since 3.0.17 * @param string $id The field ID. */ public static function remove_control( $id ) { if ( ! in_array( $id, self::$controls_to_remove, true ) ) { self::$controls_to_remove[] = $id; } } /** * Gets a parameter for a config-id. * * @static * @access public * @since 3.0.10 * @param string $id The config-ID. * @param string $param The parameter we want. * @return string */ public static function get_config_param( $id, $param ) { if ( ! isset( self::$config[ $id ] ) || ! isset( self::$config[ $id ][ $param ] ) ) { return ''; } return self::$config[ $id ][ $param ]; } /** * Migrate css-variables to output argument. * * This only exists for backwards-compatibility with the deprecated css-vars argument. * * @static * @since 4.0 * @param array $args The field arguments. * @return array */ private static function migrate_css_vars( $args ) { // Convert css_vars to output args. if ( isset( $args['css_vars'] ) ) { if ( isset( $args['transport'] ) && 'postMessage' === $args['transport'] ) { $args['transport'] = 'auto'; } // Convert to properly-formatted arrays. $args['css_vars'] = (array) $args['css_vars']; if ( isset( $args['css_vars'][0] ) && is_string( $args['css_vars'][0] ) ) { $args['css_vars'] = [ $args['css_vars'] ]; } foreach ( $args['css_vars'] as $css_var ) { $output = [ 'element' => ':root', 'property' => $css_var[0], ]; if ( isset( $css_var[1] ) ) { $output['value_pattern'] = $css_var[1]; } if ( isset( $css_var[2] ) ) { $output['choice'] = $css_var[2]; } $args['output'][] = $output; } } return $args; } } * @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