mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-28 09:43:30 +08:00
3.1.4
This commit is contained in:
parent
cf9998ad1b
commit
3896aa0cc0
15 changed files with 60 additions and 34 deletions
|
@ -91,8 +91,10 @@ class Kirki_Modules_CSS {
|
|||
return;
|
||||
}
|
||||
|
||||
// Admin styles, adds compatibility with the new WordPress editor (Gutenberg).
|
||||
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_styles' ), 100 );
|
||||
if ( ! is_customize_preview() ) {
|
||||
// Admin styles, adds compatibility with the new WordPress editor (Gutenberg).
|
||||
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_styles' ), 100 );
|
||||
}
|
||||
|
||||
add_action( 'wp', array( $this, 'print_styles_action' ) );
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ class Kirki_Modules_Gutenberg {
|
|||
protected function add_hooks() {
|
||||
if ( ! $this->is_disabled() ) {
|
||||
add_action( 'after_setup_theme', array( $this, 'add_theme_support' ), 999 );
|
||||
add_filter( 'block_editor_settings', array( $this, 'enqueue' ) );
|
||||
add_filter( 'block_editor_settings_all', array( $this, 'enqueue' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue