child theme style enqueue notice
-
hi Olsen team,
thank you for your amazing theme. there is a small bug that causes a notice when using child themes.
PHP Notice: Array to string conversion in /var/www/html/wp-includes/class.wp-dependencies.php on line 204
it’s because ininc/scripts-styles.php line 52
you enqueue child theme dependencies as with 2x array codes.so this part should change
if ( is_child_theme() ) { wp_enqueue_style( 'olsen-light-style-child', get_stylesheet_directory_uri() . '/style.css', array( $main_dependencies, ), $theme->get( 'Version' ) ); }
should change to:
if ( is_child_theme() ) { wp_enqueue_style( 'olsen-light-style-child', get_stylesheet_directory_uri() . '/style.css', $main_dependencies, $theme->get( 'Version' ) ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘child theme style enqueue notice’ is closed to new replies.