Repository navigation
Add Settings > Media toggle to enable/disable client-side media - #7
Conversation
Co-authored-by: adamsilverstein <2676022+adamsilverstein@users.noreply.github.com>
Co-authored-by: adamsilverstein <2676022+adamsilverstein@users.noreply.github.com>
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis pull request adds a WordPress admin settings page integration to manage client-side media features. A new settings option Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
No UI existed to control client-side media processing — required writing a PHP filter. This adds a checkbox to Settings > Media using the WordPress Settings API.
Changes
includes/settings.php(new): Registerscsme_enabledoption on themediasettings page. Filterscsme_use_coep_coopat priority 5 to disable COEP/COOP when unchecked.client-side-media-experiments.php: Loads the new settings file.Defaults to enabled, preserving existing behavior. Existing
csme_use_coep_coopfilter consumers at default priority still work as before.Can also be controlled programmatically:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCSStandards/PHPCSExtra/zipball/b598aa890815b8df16363271b659d73280129101/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCSStandards/PHPCSUtils/zipball/c216317e96c8b3f5932808f9b0f1f7a14e3bbf55/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCSStandards/composer-installer/zipball/845eb62303d2ca9b289ef216356568ccc075ffd1/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/244d7b04fc4bc2117c15f5abe23eb933b5f02bbf/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/7c8d18b4d90dac9e86b0869a608fa09158e168fa/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/7795ec6fa05663d716a549d0b44e47ffc8b0d4a6/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/Tktfsg /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/e0UYPS /usr/bin/composer install --no-interaction --prefer-dist(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by CodeRabbit