chrisblakley / Nebula

Nebula is a WordPress theme framework that focuses on enhancing development. The core features of Nebula make it a powerful tool for designing, developing, and analyzing WordPress websites consistently, yet its deliberately uncomplicated code syntax also serves as a learning resource for programmers themselves.
https://nebula.gearside.com
GNU General Public License v2.0
141 stars 36 forks source link

Dequeue JS does not with with negated page ID #2273

Closed patphg closed 8 months ago

patphg commented 8 months ago

In Nebula options, I am using the dequeue JS fields in the advanced section to dequeue a script on ALL pages NOT ID 721 like so:

Screenshot 2024-01-11 at 11 24 11 AM

This appears to have no effect. However if I use, for example, is_front_page, it does dequeue the script on the front page, so I know the setting is working in some ways.

I will continue to troubleshoot and update this issue with any findings or fixes.

chrisblakley commented 8 months ago

Ah interesting thought– originally the ! inversion was only intended to be used with function names, but this is a great use case. It has been updated and will be included in the next commit.