Open chvillanuevap opened 6 years ago
I just wanted to add that is_sensei
also returns false if we are on the course results endpoint. The function needs to check for the following:
if ( isset( $wp_query->query['course_results'] ) ) {
return true;
}
Note that this issue is only for the shortcodes. https://github.com/Automattic/sensei/issues/2055#issuecomment-503414372 will be handled by #3193.
Steps to Reproduce
[sensei_user_courses]
shortcode in its content.is_sensei()
returns true or false.What I Expected
I expected
is_sensei()
to returntrue
.What Happened Instead
is_sensei()
returnedfalse
.WordPress / Sensei version
WordPress 4.9.4 Sensei 1.9.20
Browser / OS version
Screenshot / Video
Context / Source
I have a function that disables Sensei styles, except for pages where
is_sensei()
returnstrue
.The function does not load the stylesheet in pages where I used the
[sensei_user_courses]
shortcode.