Kirki: Several fields not working with WordPress 4.9 beta 2

Created on 16 Oct 2017  ·  13Comments  ·  Source: kirki-framework/kirki

Issue description:

All kirki fields – except checkbox, code, dropdown-pages, image, repeater and sortable aren't working in WP 4.9 beta 2

Version used:

v3.0.11

(Did you try using the develop branch from github? There's a chance your issue has already been adressed there)
Yes, I did.

Using theme_mods or options?

theme_mods

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

Here's the theme used: _s-master.zip

I have simply used your own _s theme with the default examples from the docs.

bug

Most helpful comment

yes, WP4.9 changed the script for colorpickers, I'll have to refactor the color-alpha script.
I'll have it ready before 4.9 is released :)

All 13 comments

yes, WP4.9 changed the script for colorpickers, I'll have to refactor the color-alpha script.
I'll have it ready before 4.9 is released :)

@aristath is it not possible to work kirki with both 4.8 and 4.9 ?

Yes, it's possible.
But I'm still working on this one, it's a work in progress.
As mentioned above it will be ready before WP 4.9 is released.

I just pushed a fix for this in the develop branch.
Can you guys please help test this?

@aristath Both the multicolor and typography fields aren't loading yet – but all the others are loading fine.

Here's the error triggered in console for multicolor:

kirki-multicolor-error

And the error triggered by the typography field:

kirki-typography-error

Tested with WP latest beta (4.9-beta4-42036)

@pagelab thanks for testing this!
Fixed the multicolor control, moving on to typography now 👍

Tweaked the typography & background controls too but didn't have any time to test these things properly.
I'll have to run some detailed tests the following days for color, background, multicolor & typography controls in both WP 4.8.2 & 4.9 to make sure it works as expected for all versions.

@aristath

There is some issue with field type editor. Click on 'Open Editor' button and then close it. it does not close editor.

Note sure about message: Deprecated TinyMCE API call: .onChange.add(..)

@aristath Actually stop working on 4.8.3

@rinkuyadav999 the editor issue was fixed in #1596, will be included in 3.0.12 as soon as I finish testing everything with WP 4.9 & WP 4.8.3 to make sure other controls are ok too.

@aristath Did you update wp-color-alpha.js script -> https://github.com/kallookoo/wp-color-picker-alpha. They updated to 2.0 (like 20 hours ago..) for WP 4.9 compatibility.

I have tested Kirki last Dev build on 4.9beta4 and everything is fine (we have more than 100 different Kirki fields).
I have tested Kirki 3.0.11 & last Dev build on 4.8.X and everything is fine (we have more than 100 different Kirki fields.).

@JPDubois Nice! I hadn't seen they updated it
But I got tired of waiting for them to fix it so I fixed it in Kirki 5 days ago.
I don't know yet which version is better - mine or theirs, so I'll experiment with both and see which one to keep. 👍

Ended up using the script from https://github.com/kallookoo/wp-color-picker-alpha because I had to also support hue-only colorpickers.

Everything works fine now in WP 4.9 so closing this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ravishakya picture ravishakya  ·  7Comments

pagelab picture pagelab  ·  3Comments

stylethemes picture stylethemes  ·  6Comments

MapSteps picture MapSteps  ·  6Comments

hellor0bot picture hellor0bot  ·  3Comments