8000 Double prefix and suffix in js_vars · Issue #943 · themeum/kirki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Double prefix and suffix in js_vars #943

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

Closed
voidlz opened this issue Apr 27, 2016 · 1 comment
Closed

Double prefix and suffix in js_vars #943

voidlz opened this issue Apr 27, 2016 · 1 comment

Comments

@voidlz
Copy link
Contributor
voidlz commented Apr 27, 2016

Issue description:

When I use transport => postMessage and js_vars with function => html and prefix, suffix
I get double output prefix and suffix

Version used:

2.3.1

Using theme_mods or options?

theme_mods

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

Kirki::add_field(` 'test_kirki', array(
    'settings'    => 'test',
    'label'       => __( 'label', 'boroboro' ),
    'section'     => 'test_section',
    'type'        => 'text',
    'priority'    => 1,
    'default'     => 'text',
    'transport'   => 'postMessage',
    'js_vars'     => array(
        array(
            'element'  => 'h1.test',
            'function' => 'html',
            'prefix'   => 'prefix-',
            'suffix'   => '-suffix',
        ),
    ),
) );

output: prefix-prefix-text-suffix-suffix

@aristath
Copy link
Contributor

Thank you for reporting this!

Fixed.

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

2 participants
0