PHP Warning: Use of undefined constant wp_enqueue_scripts
-
i have a child theme instlled.
in my function.php of child theme is:
<?php function my_theme_enqueue_styles() { $parent_style = ‘pet-care-clinic’; // This is ‘pet-care-clinic’ for the pet-care-clinic theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( $parent_style ), wp_get_theme()->get(‘Version’) ); } add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ ); ?>
but my modsecurity in plesk give me an error :
AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant \x91wp_enqueue_scripts\x92 - assumed '\x91wp_enqueue_scripts\x92' (this will throw an Error in a future version of PHP) in /var/www/vhosts/DOMAIN/httpdocs/wp-content/themes/pet-care-clinic-child/functions.php on line 13PHP message: PHP Warning: Use of undefined constant \x91my_theme_enqueue_styles\x92 - assumed '\x91my_theme_enqueue_styles\x92' (this will throw an Error in a future version of PHP) in /var/www/vhosts/DOMAIN/httpdocs/wp-content/themes/pet-care-clinic-child/functions.php on line 12', referer: https://DOMAIN/
what can i do?
my PHP Version is 7.4
- The topic ‘PHP Warning: Use of undefined constant wp_enqueue_scripts’ is closed to new replies.