Kirki 4.0.24

This commit is contained in:
AlxMedia 2022-05-30 10:01:01 +02:00
parent ad73f534bf
commit 0c3f94312c
39 changed files with 1664 additions and 1315 deletions

View file

@ -141,14 +141,12 @@ class Editor_Styles {
return true;
}
if ( ! empty( $args ) ) {
if ( isset( $args['disable_output'] ) && true === $args['disable_output'] ) {
return true;
}
if ( ! isset( $args['gutenberg_support'] ) || true !== $args['gutenberg_support'] ) {
return true;
}
/**
* We would prefer to use "KIRKI_GUTENBERG_OUTPUT" instead.
* For consistency however, we will use "KIRKI_NO_GUTENBERG_OUTPUT".
*/
if ( defined( 'KIRKI_NO_GUTENBERG_OUTPUT' ) && true === KIRKI_NO_GUTENBERG_OUTPUT ) {
return true;
}
return false;