Hi yayk,
The notices & warnings could be displayed if you have WordPress debug mode set to true. This can be verified by the line: “define( ‘WP_DEBUG’, true );”. Please set it to false and see if the notice is still being displayed. Warnings & notices generally do not affect the functionality and are meant for the developer to know about possible future errors, so as long as they are just warnings or notices you can ignore them.
Thread Starter
yayk
(@yayk)
Thank you for your reply.
It is temporary that bugs disappear if debug mode is set to false
It does not lead to a fundamental improvement.
I examined the cause here.
wp-content\plugins\ultimate-faqs\Main.php on line 350
※$EWD_UFAQ_Version←It was undefined.
————————————————————————————————————-
function UFAQ_Post_Edit_Styles( $hook_suffix ){
$cpt = ‘ufaq’;
$EWD_UFAQ_Version = null;
if( in_array( $hook_suffix, array(‘post.php’, ‘post-new.php’) ) ){
$screen = get_current_screen();
if( is_object( $screen ) && $cpt == $screen->post_type ){
wp_enqueue_style( ‘ewd-ufaq-post-edit-styles’, plugins_url(“ultimate-faqs/css/ewd-ufaq-post-edit-styles.css”), $EWD_UFAQ_Version );
}
}
}
add_action(‘admin_enqueue_scripts’, ‘UFAQ_Post_Edit_Styles’);
↓
function UFAQ_Post_Edit_Styles( $hook_suffix ){
$cpt = ‘ufaq’;
$EWD_UFAQ_Version = null;
if( in_array( $hook_suffix, array(‘post.php’, ‘post-new.php’) ) ){
$screen = get_current_screen();
if( is_object( $screen ) && $cpt == $screen->post_type ){
wp_enqueue_style( ‘ewd-ufaq-post-edit-styles’, plugins_url(“ultimate-faqs/css/ewd-ufaq-post-edit-styles.css”), $EWD_UFAQ_Version );
}
}
}
add_action(‘admin_enqueue_scripts’, ‘UFAQ_Post_Edit_Styles’);
————————————————————————————————————–
I personally took countermeasures here.
I think that it will return again when updating
Please correspond to undefined syntax.
Hi yayk,
Thanks for sharing the updates. We’ll take that into account and add a fix for this in an upcoming update to the plugin.