Fixes BBT-97 - Isolates the enqueuing of the scripts and styles to just the Styles Editor by checking the current page id is appearance_page_styles_editor
Change Log
Adds a check to the enqueue_themer_assets method in the Loader class for the admin page id to make sure you are on the appearance_page_styles_editor (Styles Editor) page.
Steps to test
Check assets are only loading in on the Styles Editor page and no issues occur.
Screenshots/Videos
No JS issues.
No CSS issues.
Assets still load on correct page.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published in downstream modules
Description
Fixes BBT-97 - Isolates the enqueuing of the scripts and styles to just the Styles Editor by checking the current page id is
appearance_page_styles_editor
Change Log
enqueue_themer_assets
method in theLoader
class for the admin page id to make sure you are on theappearance_page_styles_editor
(Styles Editor) page.Steps to test
Screenshots/Videos
No JS issues.
No CSS issues.
Assets still load on correct page.
Checklist: