Skip to content

Commit

Permalink
Merge pull request #5151 from Automattic/staging
Browse files Browse the repository at this point in the history
Production release v20240116.0
  • Loading branch information
rebeccahum authored Jan 16, 2024
2 parents c40e147 + 8309ac5 commit 91ccef3
Show file tree
Hide file tree
Showing 57 changed files with 2,794 additions and 1,058 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
uses: actions/[email protected]

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/core-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
echo "GITHUB_EVENT_NAME=pull_request" >> "wordpress/.env"
- name: Set up Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version-file: 'wordpress/.nvmrc'
cache: npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
uses: ./.github/actions/prepare-source

- name: Setup Node
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version: 'lts/*'
cache: npm
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
working-directory: __tests__/e2e

- name: Archive test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fail-fast: 'true'

- name: Setup Node
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version: 'lts/*'
cache: npm
Expand All @@ -55,7 +55,7 @@ jobs:
uses: actions/[email protected]

- name: Setup Node
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version: 'lts/*'
cache: npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/search-dev-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
token: ${{ secrets.WPCOM_VIP_BOT_TOKEN }}

- name: Setup Node
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version: 'lts/*'
cache: npm
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/search-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: ./.github/actions/prepare-source

- name: "Install node v${{ env.NODE_VERSION }}"
uses: actions/[email protected].0
uses: actions/[email protected].1
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
Expand All @@ -59,7 +59,7 @@ jobs:
run: npm run cypress:run

- name: Make artifacts available
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-artifact
Expand Down
19 changes: 19 additions & 0 deletions 001-core/privacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,22 @@ function delete_old_export_files() {
}
}
}

/**
* Disable crawling for go-vip.co and go-vip.net domains.
*
* @param string $output The robots.txt content.
* @return string The modified robots.txt content.
*/
function vip_convenience_domain_robots_txt( $output ) {
$host = strtolower( $_SERVER['HTTP_HOST'] ?? '' ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
if ( false !== strpos( $host, '.go-vip.co' ) || false !== strpos( $host, '.go-vip.net' ) ) {
$output = "# Crawling is blocked for go-vip.co and go-vip.net domains\n";
$output .= "User-agent: *\n";
$output .= "Disallow: /\n";
}

return $output;
}
// phpcs:ignore WordPressVIPMinimum.Hooks.RestrictedHooks.robots_txt
add_filter( 'robots_txt', __NAMESPACE__ . '\vip_convenience_domain_robots_txt' );
36 changes: 18 additions & 18 deletions __tests__/e2e/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion __tests__/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@playwright/test": "^1.39.0",
"asana-phrase": "^0.0.8",
"eslint": "^8.51.0",
"eslint-plugin-playwright": "^0.19.0",
"eslint-plugin-playwright": "^0.21.0",
"playwright": "^1.39.0",
"typescript": "^5.2.2"
}
Expand Down
6 changes: 3 additions & 3 deletions akismet/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</IfModule>

# Akismet CSS and JS
<FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
<FilesMatch "^(form\.js|akismet(-frontend|-admin)?\.js|akismet(-admin)?(-rtl)?\.css|inter\.css)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>
Expand All @@ -23,12 +23,12 @@
</FilesMatch>

# Akismet images
<FilesMatch "^logo-(a|full)-2x\.png$">
<FilesMatch "^(logo-(a|full)-2x\.png|akismet-refresh-logo\.svg|akismet-refresh-logo@2x\.png|arrow-left\.svg)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>

<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
</FilesMatch>
Loading

0 comments on commit 91ccef3

Please sign in to comment.