is_singular() Always False, Everywhere
-
I am trying to figure out why bbPress (inside Buddypress) isn’t enqueueing topic.js on topic pages so that favoriting and subscribing buttons ajax instead of refresh (which they currently do).
In
enqueue_scripts()
,bbp_is_single_topic()
is being checked before allowing the js files to be enqueued.In the
bbp_is_single_topic()
function declaration,is_singular( bbp_get_topic_post_type() ) || bbp_is_query_name( 'bbp_single_topic' )
must be satisfied to return true.Issue:
is_singular( bbp_get_topic_post_type() )
returns false (alsois_singluar('topic')
and justis_singluar()
— also, no matter where I go in bbpress,is_singluar()
returns false).
Tangential: echoingbbp_get_query_name()
returns nothing.Any ideas?
NB: This was tested on fresh Twenty Twelve with all non-essential plugins disabled and bp-custom.php emptied.
WP: 4.4.1
BP: 2.4.3
BBP: 2.5.8
- You must be logged in to reply to this topic.