diff --git a/.monorepo-source.json b/.monorepo-source.json index e7c13c8..daee632 100644 --- a/.monorepo-source.json +++ b/.monorepo-source.json @@ -1,7 +1,7 @@ { "productId": "funkycommerce-headless", "repository": "coded-letter/superfunky-theme", - "source": "coded-letter/coded-letter-monorepo@3da686f04ce7ac7cc6f946c53d1044c3a2198619", + "source": "coded-letter/coded-letter-monorepo@28b15f2e1f97b76e7b5b1453d90651e9805d9074", "sourcePath": "workspace/backend/wordpress/themes/free/funkycommerce-headless", "installSlug": "funkycommerce-headless", "kind": "theme", diff --git a/functions.php b/functions.php index 7621954..5c29706 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,7 @@ exit; } -define( 'FUNKYCOMMERCE_HEADLESS_VERSION', '1.2.36' ); +define( 'FUNKYCOMMERCE_HEADLESS_VERSION', '1.2.37' ); /** * Whether Superfunky Pro is active and licensed. diff --git a/inc/backend-preview.php b/inc/backend-preview.php index efe91d5..54eee28 100644 --- a/inc/backend-preview.php +++ b/inc/backend-preview.php @@ -90,8 +90,9 @@ function funkycommerce_backend_preview_authorized() { /** * Whether the current request must be exempt from both the preview guard and - * the public redirect: WordPress admin, login, REST, GraphQL, cron, feeds, and - * the theme's own SEO/AI document and merchant-feed routes. + * the public redirect: WordPress admin, login, REST, GraphQL, cron, feeds, + * media/conversion requests, and the theme's own SEO/AI document and + * merchant-feed routes. * * @return bool */ @@ -126,7 +127,7 @@ function funkycommerce_backend_preview_request_is_exempt() { return false; } - foreach ( array( '/wp-admin', '/wp-login.php', '/wp-cron.php', '/xmlrpc.php', '/wp-json', '/graphql', '/wc-api/', '/wp-sitemap', '/product-feed.xml', '/feed.xml', '/rss.xml', '/atom.xml' ) as $prefix ) { + foreach ( array( '/wp-admin', '/wp-login.php', '/wp-cron.php', '/xmlrpc.php', '/wp-json', '/graphql', '/wc-api/', '/wp-content/uploads/', '/wp-content/webp-express/', '/wp-content/plugins/webp-express/', '/wp-sitemap', '/product-feed.xml', '/feed.xml', '/rss.xml', '/atom.xml' ) as $prefix ) { if ( 0 === strpos( $path, $prefix ) ) { return true; } diff --git a/package-lock.json b/package-lock.json index 1192a3d..cc890cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "funkycommerce-headless-theme", - "version": "1.2.36", + "version": "1.2.37", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "funkycommerce-headless-theme", - "version": "1.2.36", + "version": "1.2.37", "devDependencies": { "autoprefixer": "^10.4.20", "esbuild": "^0.28.2", diff --git a/package.json b/package.json index 852db13..7f659a9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "funkycommerce-headless-theme", "private": true, - "version": "1.2.36", + "version": "1.2.37", "description": "Tailwind/build tooling for the FunkyCommerce Headless WordPress theme's native frontend assets (block templates, template parts, loader, and Spotify slot).", "scripts": { "build:css": "tailwindcss -i ./assets/css/theme-source.css -o ./assets/dist/theme.css --minify", diff --git a/readme.txt b/readme.txt index 7b2f2e6..7449957 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: headless, woocommerce, wpgraphql, full-site-editing Requires at least: 6.7 Tested up to: 6.8 Requires PHP: 7.4 -Stable tag: 1.2.36 +Stable tag: 1.2.37 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -15,6 +15,10 @@ Control Center, the theme also ships a complete native WordPress rendering path "Native frontend theme" below) with accessible header/footer/navigation templates and core front/home/singular/archive/search/404 routes styled to match the storefront. +== 1.2.37 highlights == + +* Keeps WordPress uploads and WebP Express conversion requests on the backend when public headless redirects are enabled. + == 1.2.36 highlights == * Removes the stray admin-bar badge metadata output and adds Cloudflare Pages deployment controls. diff --git a/style.css b/style.css index 5acc4ed..12ee42a 100644 --- a/style.css +++ b/style.css @@ -7,7 +7,7 @@ Description: A minimal, content-first block theme for polished WordPress preview Requires at least: 6.7 Tested up to: 6.8 Requires PHP: 7.4 -Version: 1.2.36 +Version: 1.2.37 Update URI: https://github.com/coded-letter/superfunky-theme License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html