Skip to content

Commit 8fa0e51

Browse files
Fix changed filename for main scss file for replaces.sh in newtheme script, Ref: DEV-720
1 parent 3d4f948 commit 8fa0e51

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### [Unreleased]: 2026-02-04
2+
3+
* Fix changed filename for main scss file for replaces.sh in newtheme script, Ref: DEV-720
4+
15
### 10.0.1: 2026-02-03
26

37
* Fix air-pack.sh to exclude .parcel-cache directory from WordPress.org package, Ref: DEV-735

bin/tasks/replaces-wsl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ for i in $(grep -rl air * --exclude-dir=node_modules 2>/dev/null); do LC_ALL=C s
1010

1111
# Remove demo content
1212
echo "${YELLOW}Removing demo content...${TXTRESET}"
13-
LC_ALL=C sed -i -e "s;@use 'layout\/wordpress'\;;;" ${PROJECT_THEME_PATH}/assets/src/sass/global.scss
13+
LC_ALL=C sed -i -e "s;@use 'layout\/wordpress'\;;;" ${PROJECT_THEME_PATH}/assets/src/sass/front-end.scss
1414

1515
read -p "${BOLDYELLOW}Do we use comments in this project? (y/n)${TXTRESET} " yn
1616
if [ "$yn" = "n" ]; then
17-
LC_ALL=C sed -i -e "s;@use 'views\/comments'\;;;" ${PROJECT_THEME_PATH}/assets/src/sass/global.scss
17+
LC_ALL=C sed -i -e "s;@use 'views\/comments'\;;;" ${PROJECT_THEME_PATH}/assets/src/sass/front-end.scss
1818
rm ${PROJECT_THEME_PATH}/assets/src/sass/views/_comments.scss
1919
else
2020
echo ' '

bin/tasks/replaces.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ for i in $(grep -rl airwptheme * --exclude-dir=node_modules 2>/dev/null); do LC_
1111

1212
# Remove demo content
1313
echo "${YELLOW}Removing demo content...${TXTRESET}"
14-
find ${PROJECT_THEME_PATH}/assets/src/sass/ -name 'global.scss' -exec sed -i '' -e "s/@use 'layout\/wordpress';//g" {} +
14+
find ${PROJECT_THEME_PATH}/assets/src/sass/ -name 'front-end.scss' -exec sed -i '' -e "s/@use 'layout\/wordpress';//g" {} +
1515
find ${PROJECT_THEME_PATH}/ -maxdepth 2 -name 'front-page.php' -exec sed -i '' -e "s/<\?php get_template_part( \'template-parts\/header\/demo-content\' ); \?>//g" {} +
1616
find ${PROJECT_THEME_PATH}/ -maxdepth 2 -name 'front-page.php' -exec sed -i '' -e "s/\/\/ Featured image for Theme Checker (it\'s a requirement for theme to pass in official Theme directory)//g" {} +
1717
find ${PROJECT_THEME_PATH}/ -maxdepth 2 -name 'front-page.php' -exec sed -i '' -e "s/\/\/ NB\! Our dev version uses newtheme.sh build script which cleans ups things including this next line//g" {} +
1818
find ${PROJECT_THEME_PATH}/ -maxdepth 2 -name 'front-page.php' -exec sed -i '' -e "s/\$thumbnail \= wp_get_attachment_url( get_post_thumbnail_id() ) \?\: THEME_SETTINGS\['default_featured_image'\];//g" {} +
1919

2020
read -p "${BOLDYELLOW}Do we use comments in this project? (y/n)${TXTRESET} " yn
2121
if [ "$yn" = "n" ]; then
22-
find ${PROJECT_THEME_PATH}/assets/src/sass/ -name 'global.scss' -exec sed -i '' -e "s/@import 'views\/comments';//g" {} +
22+
find ${PROJECT_THEME_PATH}/assets/src/sass/ -name 'front-end.scss' -exec sed -i '' -e "s/@import 'views\/comments';//g" {} +
2323
rm ${PROJECT_THEME_PATH}/assets/src/sass/views/_comments.scss
2424
else
2525
echo ' '

0 commit comments

Comments
 (0)