File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
1212echo " ${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
1515read -p " ${BOLDYELLOW} Do we use comments in this project? (y/n)${TXTRESET} " yn
1616if [ " $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
1919else
2020 echo ' '
Original file line number Diff line number Diff 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
1313echo " ${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" {} +
1515find ${PROJECT_THEME_PATH} / -maxdepth 2 -name ' front-page.php' -exec sed -i ' ' -e " s/<\?php get_template_part( \'template-parts\/header\/demo-content\' ); \?>//g" {} +
1616find ${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" {} +
1717find ${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" {} +
1818find ${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
2020read -p " ${BOLDYELLOW} Do we use comments in this project? (y/n)${TXTRESET} " yn
2121if [ " $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
2424else
2525 echo ' '
You can’t perform that action at this time.
0 commit comments