From d441d3e03faaf32a6540a41fdebe3b4728da9643 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytis=20Bulkevi=C4=8Dius?= Date: Wed, 21 Oct 2026 13:23:33 +0300 Subject: [PATCH 1/7] chore: remove inherited entries from the 1.0.0 changelog --- CHANGELOG.md | 71 -------------------------------------------------- readme.md | 73 ---------------------------------------------------- readme.txt | 73 ---------------------------------------------------- 3 files changed, 217 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d1cf39..ed7961a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,74 +2,3 @@ - Added AI agent support: connect your AI assistant and ask it to edit your sites header, footer and style - Updated dependencies -- Updated dependencies -- Updated dependencies -- Fix issues mentioned by Theme Review Team -- Initial version -- Updated dependencies -### Bug Fixes - -- **Fix Plugin Activation Error**: This fixes an error that occurs when you try to activate a plugin. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Raft theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Neve FSE theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### Improvements - -- **Banner**: Adds promo banner for FSE Design Pack -### Improvements - -- **Package Updates**: Updates to code packages, no user-facing changes. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Improvements - -- **WordPress compatibility check**: Tested with the latest WordPress version for compatibility. - -### Bug Fixes - -- **Pagination on Archive**: Fixed the issue with pagination not working properly on Archive templates. - -- **No Horizontal Margins on Mobile**: - Addressed the styling issue when margins on smaller screens were being removed. -### Improvements -- **Dashboard Survey**: Eliminated the feedback survey embedded within the dashboard. -- **Template Refinements**: Incorporated header and footer elements into the 404 template. -- **Template Refinements**: Applied the accent color as the background color to the penultimate section on the homepage. -- **Template Refinements**: Integrated the site background color into the Featured Work section. -- **Style Enhancements**: Introduced the Secondary Accent color in the main theme.json file and specified corresponding colors for each palette individually. - -### Bug Fixes -- **Editor Padding**: Rectified the padding issue surrounding the page inside the editor. -- **Editor Styles View**: Resolved the problem of sections expanding in height when previewing in Styles view on the homepage. -- [Feat] Change the padding for Primary and Secondary buttons on mobile -- [Fix] Duplicated title tag when RankMath is active -- Improve style variations preview inside the editor -- [Feat] Update action to deploy to WordPress svn -- [Fix] Updated and compressed images -- [Fix] Exclude JS and CSS sources -- Added SDK -- Update dependencies -- Feat: Added survey notice -- Fix: Add rule to enforce sticky for header -- Fix: Single cover layout structure -- Updated theme description -- Fix: Update Screenshot for theme -Removed extra filter -Initial Release -Initial Release diff --git a/readme.md b/readme.md index 34badcd..8a0ffee 100644 --- a/readme.md +++ b/readme.md @@ -20,79 +20,6 @@ Eduacademy is distributed under the terms of the GNU GPLv2 or later - Added AI agent support: connect your AI assistant and ask it to edit your sites header, footer and style - Updated dependencies -- Updated dependencies -- Updated dependencies -- Fix issues mentioned by Theme Review Team -- Initial version -- Updated dependencies -### Bug Fixes - -- **Fix Plugin Activation Error**: This fixes an error that occurs when you try to activate a plugin. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Raft theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Neve FSE theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### Improvements - -- **Banner**: Adds promo banner for FSE Design Pack -### Improvements - -- **Package Updates**: Updates to code packages, no user-facing changes. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Improvements - -- **WordPress compatibility check**: Tested with the latest WordPress version for compatibility. - -### Bug Fixes - -- **Pagination on Archive**: Fixed the issue with pagination not working properly on Archive templates. - -- **No Horizontal Margins on Mobile**: - Addressed the styling issue when margins on smaller screens were being removed. -### Improvements -- **Dashboard Survey**: Eliminated the feedback survey embedded within the dashboard. -- **Template Refinements**: Incorporated header and footer elements into the 404 template. -- **Template Refinements**: Applied the accent color as the background color to the penultimate section on the homepage. -- **Template Refinements**: Integrated the site background color into the Featured Work section. -- **Style Enhancements**: Introduced the Secondary Accent color in the main theme.json file and specified corresponding colors for each palette individually. - -### Bug Fixes -- **Editor Padding**: Rectified the padding issue surrounding the page inside the editor. -- **Editor Styles View**: Resolved the problem of sections expanding in height when previewing in Styles view on the homepage. -- [Feat] Change the padding for Primary and Secondary buttons on mobile -- [Fix] Duplicated title tag when RankMath is active -- Improve style variations preview inside the editor -- [Feat] Update action to deploy to WordPress svn -- [Fix] Updated and compressed images -- [Fix] Exclude JS and CSS sources -- Added SDK -- Update dependencies -- Feat: Added survey notice -- Fix: Add rule to enforce sticky for header -- Fix: Single cover layout structure -- Updated theme description -- Fix: Update Screenshot for theme -Removed extra filter -Initial Release -Initial Release - - ## Resources ## diff --git a/readme.txt b/readme.txt index 3695a5c..a50b008 100644 --- a/readme.txt +++ b/readme.txt @@ -20,79 +20,6 @@ Eduacademy is distributed under the terms of the GNU GPLv2 or later - Added AI agent support: connect your AI assistant and ask it to edit your sites header, footer and style - Updated dependencies -- Updated dependencies -- Updated dependencies -- Fix issues mentioned by Theme Review Team -- Initial version -- Updated dependencies -### Bug Fixes - -- **Fix Plugin Activation Error**: This fixes an error that occurs when you try to activate a plugin. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Raft theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### New Features -- **New Onboarding for Raft Theme**: Experience a new Onboarding process for the Neve FSE theme, integrating the use of Otter Blocks plugin. -- **New Block Patterns**: Added new block patterns to enrich the customization options. -- **Fullwidth Template with Header and Footer**: Introduced a new fullwidth template that includes both Header and Footer. - -### Bug Fixes - -- **Fix Notice Error**: Fixed an issue with the Notice causing an error when visiting the Editor. -### Improvements - -- **Banner**: Adds promo banner for FSE Design Pack -### Improvements - -- **Package Updates**: Updates to code packages, no user-facing changes. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Bug Fixes - -- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically. -### Improvements - -- **WordPress compatibility check**: Tested with the latest WordPress version for compatibility. - -### Bug Fixes - -- **Pagination on Archive**: Fixed the issue with pagination not working properly on Archive templates. - -- **No Horizontal Margins on Mobile**: - Addressed the styling issue when margins on smaller screens were being removed. -### Improvements -- **Dashboard Survey**: Eliminated the feedback survey embedded within the dashboard. -- **Template Refinements**: Incorporated header and footer elements into the 404 template. -- **Template Refinements**: Applied the accent color as the background color to the penultimate section on the homepage. -- **Template Refinements**: Integrated the site background color into the Featured Work section. -- **Style Enhancements**: Introduced the Secondary Accent color in the main theme.json file and specified corresponding colors for each palette individually. - -### Bug Fixes -- **Editor Padding**: Rectified the padding issue surrounding the page inside the editor. -- **Editor Styles View**: Resolved the problem of sections expanding in height when previewing in Styles view on the homepage. -- [Feat] Change the padding for Primary and Secondary buttons on mobile -- [Fix] Duplicated title tag when RankMath is active -- Improve style variations preview inside the editor -- [Feat] Update action to deploy to WordPress svn -- [Fix] Updated and compressed images -- [Fix] Exclude JS and CSS sources -- Added SDK -- Update dependencies -- Feat: Added survey notice -- Fix: Add rule to enforce sticky for header -- Fix: Single cover layout structure -- Updated theme description -- Fix: Update Screenshot for theme -Removed extra filter -Initial Release -Initial Release - - == Resources == From 1ed4344d90a93219c30e589a77ffa4796c3d7a3b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 28 Oct 2026 02:00:50 +0200 Subject: [PATCH 2/7] chore(deps): bump codeinwp/themeisle-sdk from 3.3.67 to 3.3.68 (#21) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.67 to 3.3.68. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Commits](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.67...v3.3.68) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-version: 3.3.68 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 1da87bc..2cca255 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.67", + "version": "3.3.68", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "e1dda44811660a65c3da6994349c054a46686d69" + "reference": "8477d5100ffdddd316a3e51129d775d8854d8a77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/e1dda44811660a65c3da6994349c054a46686d69", - "reference": "e1dda44811660a65c3da6994349c054a46686d69", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/8477d5100ffdddd316a3e51129d775d8854d8a77", + "reference": "8477d5100ffdddd316a3e51129d775d8854d8a77", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.67" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.68" }, - "time": "2026-10-13T12:16:34+00:00" + "time": "2026-10-27T13:38:50+00:00" } ], "packages-dev": [ From 128da52933fc38058b3df698152f754e120ba3e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 02:00:40 +0200 Subject: [PATCH 3/7] chore(deps): bump codeinwp/themeisle-sdk from 3.3.68 to 3.3.69 (#22) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.68 to 3.3.69. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Commits](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.68...v3.3.69) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-version: 3.3.69 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 2cca255..cf1b98c 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.68", + "version": "3.3.69", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "8477d5100ffdddd316a3e51129d775d8854d8a77" + "reference": "5b3c3e45f3ff385172539d330797df95172a06a8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/8477d5100ffdddd316a3e51129d775d8854d8a77", - "reference": "8477d5100ffdddd316a3e51129d775d8854d8a77", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/5b3c3e45f3ff385172539d330797df95172a06a8", + "reference": "5b3c3e45f3ff385172539d330797df95172a06a8", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.68" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.69" }, - "time": "2026-10-27T13:38:50+00:00" + "time": "2026-11-02T09:34:57+00:00" } ], "packages-dev": [ From b98327b85fd0bb64cd7542e79c5e71c51e4709ec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2026 02:00:40 +0200 Subject: [PATCH 4/7] chore(deps): bump codeinwp/themeisle-sdk from 3.3.69 to 3.3.70 (#23) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.69 to 3.3.70. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Commits](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.69...v3.3.70) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-version: 3.3.70 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index cf1b98c..524c12c 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.69", + "version": "3.3.70", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "5b3c3e45f3ff385172539d330797df95172a06a8" + "reference": "b46f386e5cd307b888c5760427ed127a751db18a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/5b3c3e45f3ff385172539d330797df95172a06a8", - "reference": "5b3c3e45f3ff385172539d330797df95172a06a8", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/b46f386e5cd307b888c5760427ed127a751db18a", + "reference": "b46f386e5cd307b888c5760427ed127a751db18a", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.69" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.70" }, - "time": "2026-11-02T09:34:57+00:00" + "time": "2026-11-03T09:41:48+00:00" } ], "packages-dev": [ From a20d49fdc18f46a9e313add782bad1358c13ac70 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 08:00:48 +0200 Subject: [PATCH 5/7] chore(deps): bump codeinwp/themeisle-sdk from 3.3.70 to 3.3.71 (#24) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.70 to 3.3.71. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Commits](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.70...v3.3.71) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-version: 3.3.71 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 524c12c..3cd292c 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.70", + "version": "3.3.71", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "b46f386e5cd307b888c5760427ed127a751db18a" + "reference": "cd7acfc0b01b8d5712736aa3721d689591ced991" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/b46f386e5cd307b888c5760427ed127a751db18a", - "reference": "b46f386e5cd307b888c5760427ed127a751db18a", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/cd7acfc0b01b8d5712736aa3721d689591ced991", + "reference": "cd7acfc0b01b8d5712736aa3721d689591ced991", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.70" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.71" }, - "time": "2026-11-03T09:41:48+00:00" + "time": "2026-11-04T20:22:53+00:00" } ], "packages-dev": [ From 8dc3940b12aa4fa74ef1bee76bc6937f30e80db4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 7 Nov 2026 02:00:39 +0200 Subject: [PATCH 6/7] chore(deps): bump codeinwp/themeisle-sdk from 3.3.71 to 3.3.72 (#25) Bumps [codeinwp/themeisle-sdk](https://github.com/Codeinwp/themeisle-sdk) from 3.3.71 to 3.3.72. - [Release notes](https://github.com/Codeinwp/themeisle-sdk/releases) - [Commits](https://github.com/Codeinwp/themeisle-sdk/compare/v3.3.71...v3.3.72) --- updated-dependencies: - dependency-name: codeinwp/themeisle-sdk dependency-version: 3.3.72 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- composer.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 3cd292c..00b3864 100644 --- a/composer.lock +++ b/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.71", + "version": "3.3.72", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "cd7acfc0b01b8d5712736aa3721d689591ced991" + "reference": "66036fa0ef8168f7e5a3f7bf06dc88733e1d46db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/cd7acfc0b01b8d5712736aa3721d689591ced991", - "reference": "cd7acfc0b01b8d5712736aa3721d689591ced991", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/66036fa0ef8168f7e5a3f7bf06dc88733e1d46db", + "reference": "66036fa0ef8168f7e5a3f7bf06dc88733e1d46db", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.71" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.72" }, - "time": "2026-11-04T20:22:53+00:00" + "time": "2026-11-06T13:01:52+00:00" } ], "packages-dev": [ From c05a7ed0efde44259c529cfa49de0a5e2d83cbc2 Mon Sep 17 00:00:00 2001 From: selul Date: Thu, 12 Nov 2026 04:10:11 +0200 Subject: [PATCH 7/7] fix: normalize inherited style output --- inc/Assets_Manager.php | 2 +- tests/test-assets-manager.php | 54 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 tests/test-assets-manager.php diff --git a/inc/Assets_Manager.php b/inc/Assets_Manager.php index 1006f0c..a260db2 100644 --- a/inc/Assets_Manager.php +++ b/inc/Assets_Manager.php @@ -54,7 +54,7 @@ public static function enqueue_style( string $handle, string $file, array $depen // Add the inherited values from Neve. $inherited_style_values = self::get_inherited_style_values(); if ( ! empty( $inherited_style_values ) ) { - wp_add_inline_style( $handle, $inherited_style_values ); + wp_add_inline_style( $handle, wp_strip_all_tags( $inherited_style_values ) ); } } diff --git a/tests/test-assets-manager.php b/tests/test-assets-manager.php new file mode 100644 index 0000000..cad1445 --- /dev/null +++ b/tests/test-assets-manager.php @@ -0,0 +1,54 @@ + array( + 'fontWeight' => '700', + ), + ) + ); + + Neve_Mods::$instance = null; + Assets_Manager::enqueue_style( 'eduacademy-test-style', 'style' ); + + $inline_styles = wp_styles()->get_data( 'eduacademy-test-style', 'after' ); + $inline_style = implode( "\n", $inline_styles ); + + $this->assertStringContainsString( '--neve-font-weight-body:700;', $inline_style ); + $this->assertStringNotContainsString( '', $inline_style ); + $this->assertStringNotContainsString( '', $inline_style ); + } +}