Skip to content

Commit 7d4325b

Browse files
committed
Move themes into standard locations
1 parent f1edf40 commit 7d4325b

File tree

111 files changed

+13
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+13
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
run: |
2424
rm -rf wp-content/mu-plugins/pub/locale-switcher/node_modules
2525
rm -rf wp-content/plugins/wporg-learn/node_modules
26-
rm -rf wp-content/themes/pub/wporg-learn-2020/node_modules
26+
rm -rf wp-content/themes/wporg-learn-2020/node_modules
2727
mv wp-content/mu-plugins/pub/locale-switcher $RUNNER_TEMP
2828
mv wp-content/mu-plugins/pub/class-validator.php $RUNNER_TEMP
2929
mv wp-content/mu-plugins/pub/locales.php $RUNNER_TEMP
3030
mv wp-content/plugins/sensei-pro $RUNNER_TEMP
3131
mv wp-content/plugins/wporg-learn $RUNNER_TEMP
32-
mv wp-content/themes/pub/wporg-learn-2020 $RUNNER_TEMP
32+
mv wp-content/themes/wporg-learn-2020 $RUNNER_TEMP
3333
git rm -rfq .
3434
rm -rf *
3535
mkdir -p wp-content/mu-plugins/pub

.github/workflows/linters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717

1818
- name: Fetch wporg parent theme css
1919
run: |
20-
mkdir wp-content/themes/pub/wporg
21-
svn export https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/css wp-content/themes/pub/wporg/css
20+
mkdir wp-content/themes/wporg
21+
svn export https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/css wp-content/themes/wporg/css
2222
2323
- name: Install NodeJS
2424
uses: actions/setup-node@v3

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/wp-content/mu-plugins/pub/locale-switcher/build
1515
/wp-content/plugins/*
1616
/wp-content/themes/*
17-
/wp-content/themes/pub/*
1817

1918
# Track our custom code.
2019
!/wp-content/mu-plugins
@@ -26,13 +25,12 @@
2625
!/wp-content/plugins/wporg-learn
2726
!/wp-content/plugins/sensei-pro
2827
!/wp-content/themes
29-
!/wp-content/themes/pub
30-
!/wp-content/themes/pub/wporg-learn-2020
28+
!/wp-content/themes/wporg-learn-2020
3129

3230
# Ignore subfolders in our custom code.
3331
/wp-content/plugins/wporg-learn/build
3432

3533
# Ignore built CSS.
36-
/wp-content/themes/pub/wporg-learn-2020/css/print.css
37-
/wp-content/themes/pub/wporg-learn-2020/css/style-rtl.css
38-
/wp-content/themes/pub/wporg-learn-2020/css/style.css
34+
/wp-content/themes/wporg-learn-2020/css/print.css
35+
/wp-content/themes/wporg-learn-2020/css/style-rtl.css
36+
/wp-content/themes/wporg-learn-2020/css/style.css

blueprint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"steps": [
44
{
55
"step": "activateTheme",
6-
"themeFolderName": "pub/wporg-learn-2020"
6+
"themeFolderName": "wporg-learn-2020"
77
},
88
{
99
"step": "activatePlugin",

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"installer-paths": {
2020
"wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
2121
"wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
22-
"wp-content/themes/pub/{$name}/": ["type:wordpress-theme"]
22+
"wp-content/themes/{$name}/": ["type:wordpress-theme"]
2323
}
2424
},
2525
"repositories": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"packages": [
1313
"wp-content/mu-plugins/pub/locale-switcher",
1414
"wp-content/plugins/wporg-learn",
15-
"wp-content/themes/pub/wporg-learn-2020"
15+
"wp-content/themes/wporg-learn-2020"
1616
],
1717
"nohoist": [
1818
"**/grunt-*"

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<exclude-pattern>*/build/*</exclude-pattern>
2121

2222
<!-- Exclude all themes except the learn theme -->
23-
<exclude-pattern>/wp-content/themes/pub/(?!wporg-learn-2020)</exclude-pattern>
23+
<exclude-pattern>/wp-content/themes/(?!wporg-learn-2020)</exclude-pattern>
2424

2525
<!-- Exclude all plugins except the learn plugin -->
2626
<exclude-pattern>/wp-content/plugins/(?!wporg-learn)</exclude-pattern>

0 commit comments

Comments
 (0)