Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation notice from InputSlider control #2533

Open
DeoThemes opened this issue Jul 8, 2024 · 0 comments
Open

Deprecation notice from InputSlider control #2533

DeoThemes opened this issue Jul 8, 2024 · 0 comments

Comments

@DeoThemes
Copy link

DeoThemes commented Jul 8, 2024

Issue description:

I'm using an example from your docs and got this notice:

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in C:\Users\...\Local Sites\envision-blocks\app\public\wp-content\themes\envisionx\includes\customizer\kirki\pro-src\packages\kirki-pro-input-slider\src\Control\InputSlider.php on line 74

Version used:

5

Using theme_mods or options?

theme_mods

Code to reproduce the issue (config + field(s))

new \Kirki\Pro\Field\InputSlider(
	[
		'settings'    => 'kirki_pro_slider',
		'label'       => esc_html__( 'Responsive Slider Control', 'kirki' ),
		'section'     => 'section_id',
		'transport'   => 'postMessage',
		'default'     => '50px',
		'choices'     => [
			'min'  => 0,
			'max'  => 100,
			'step' => 1,
		],
	]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant