Kirki 4.0.24

This commit is contained in:
AlxMedia 2022-05-30 09:58:04 +02:00
parent 896957cd95
commit 79e4092e86
39 changed files with 1664 additions and 1315 deletions

View file

@ -166,6 +166,7 @@ var kirkiPostMessage = {
if ( output.choice && key !== output.choice ) {
return;
}
processedValue = kirkiPostMessage.util.processValue( output, val );
if ( '' === processedValue ) {
@ -176,8 +177,10 @@ var kirkiPostMessage = {
}
}
var customProperty = controlType === 'kirki-sortable' ? output.property + '-' + key : output.property;
if ( false !== processedValue ) {
styles += output.property ? output.property + '-' + key + ':' + processedValue + ';' : key + ':' + processedValue + ';';
styles += output.property ? customProperty + ":" + processedValue + ";" : key + ":" + processedValue + ";";
}
} );
styles += '}';