Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

has_blocks bug

$
0
0

Replies: 0

I was having an issue on an instance of a site that I am building where tribe-events-v2-single-skeleton.css wasn’t enqueuing as expected.

I dug into /the-events-calendar/src/Tribe/Views/V2/Assets.php where the file should be enqueued. I found should_enqueue_single_event_styles and noticed that for some reason, despite the fact I am using the “Classic” editor (for events only), has_blocks() was returning true.

Clearly, that shouldn’t be true, as Classic editor is in use. I went back and re-saved my Event Settings but checking off and on the Classic editor setting with no luck. There was no way for me to resolve the issue on some legacy events- through the UI settings. The good news, fresh events that I created were correctly returning false.

Strange, eh?

The only thing that I can think of is that originally the Block editor for Events was on, but then I changed to the Classic editor and somehow the previous criteria for has_blocks() never cleared. I didn’t dig beyond what I have stated.

Feel free to ping me if you have any questions.


Viewing all articles
Browse latest Browse all 59525

Trending Articles