Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion environments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ npm run wptv:test

- Download links, subtitle tracks, and the video data in JSON-LD and Open Graph tags are missing, and `/api/videos.json` lists no video files.
- `/oembed/` and `/unisubs/` answer with an error for every video.
- Jetpack runs in offline mode. `mocks/wptv-local.php` turns on the VideoPress and Sharing modules anyway, so the players and sharing buttons render. The Like button needs a connection, so it doesn't show, and the editor asks to connect Jetpack.
- Jetpack runs in offline mode. `wordpress-tv/mu-plugins/wptv-local.php` turns on the VideoPress and Sharing modules anyway, so the players and sharing buttons render. The Like button needs a connection, so it doesn't show, and the editor asks to connect Jetpack.
- Uploads from the submission form stay local instead of going to VideoPress, so every submission gets the State of the Word 2024 video.

### Photo Directory
Expand Down
5 changes: 2 additions & 3 deletions environments/jobs/.wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"../jobs.wordpress.net/public_html/wp-content/themes/jobswp"
],
"mappings": {
"wp-content/mu-plugins/wporg-dev-login.php": "./mocks/mu-plugins/wporg-dev-login.php",
"wp-content/mu-plugins/jetpack-offline-subscriptions.php": "./mocks/jetpack-offline-subscriptions.php",
"wp-content/mu-plugins/jobs-open-to-work.php": "./mocks/jobs-open-to-work.php"
"wp-content/mu-plugins": "./jobs/mu-plugins",
"wp-content/env-mocks": "./mocks"
},
"lifecycleScripts": {
"afterStart": "bash jobs/bin/after-start.sh"
Expand Down
14 changes: 14 additions & 0 deletions environments/jobs/mu-plugins/dev-login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Plugin Name: Dev Login Helper Loader
* Description: Loads the shared one-click login helper from the mocks directory.
*
* The mocks are mapped in as a directory because Docker Desktop's runc can't create
* a single-file mountpoint inside the core directory wp-env bind-mounts.
*
* @package WordPressdotorg\Environments
*/

declare( strict_types = 1 );

require WP_CONTENT_DIR . '/env-mocks/mu-plugins/wporg-dev-login.php';
2 changes: 1 addition & 1 deletion environments/support-forums/.wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"wp-content/mu-plugins/wporg-mu-plugins": "WordPress/wporg-mu-plugins#build",
"wp-content/plugins/plugin-directory": "../wordpress.org/public_html/wp-content/plugins/plugin-directory",
"wp-content/plugins/theme-directory": "../wordpress.org/public_html/wp-content/plugins/theme-directory",
"wp-content/plugins/wporg-ratings/wporg-ratings.php": "./support-forums/plugins/wporg-ratings.php",
"wp-content/plugins/wporg-ratings": "./support-forums/plugins/wporg-ratings",
"wp-content/plugins/jetpack": "https://downloads.wordpress.org/plugin/jetpack.zip",
"wp-content/env-bin": "./support-forums/bin",
"style": "../wordpress.org/public_html/style"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* mocks/mu-plugins/class-wporg-ratings.php; this only gives that
* activation a plugin to find.
*
* Mapped in as wp-content/plugins/wporg-ratings/wporg-ratings.php.
* Mapped in as wp-content/plugins/wporg-ratings/.
*
* @package support-forums-env
*/
Expand Down
4 changes: 2 additions & 2 deletions environments/wordpress-tv/.wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"../wordpress.tv/public_html/wp-content/themes/wptv-27"
],
"mappings": {
"wp-content/mu-plugins/wporg-dev-login.php": "./mocks/mu-plugins/wporg-dev-login.php",
"wp-content/mu-plugins/wptv-local.php": "./mocks/wptv-local.php",
"wp-content/mu-plugins": "./wordpress-tv/mu-plugins",
"wp-content/env-mocks": "./mocks",
"wp-content/env-bin": "./wordpress-tv/bin"
},
"lifecycleScripts": {
Expand Down
14 changes: 14 additions & 0 deletions environments/wordpress-tv/mu-plugins/dev-login.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Plugin Name: Dev Login Helper Loader
* Description: Loads the shared one-click login helper from the mocks directory.
*
* The mocks are mapped in as a directory because Docker Desktop's runc can't create
* a single-file mountpoint inside the core directory wp-env bind-mounts.
*
* @package WordPressdotorg\Environments
*/

declare( strict_types = 1 );

require WP_CONTENT_DIR . '/env-mocks/mu-plugins/wporg-dev-login.php';
Loading