From 55c22ce0db518253612611396ba1ffa981c0382d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:22:56 +0000 Subject: [PATCH] chore: sync funkycommerce-headless from monorepo Source: coded-letter/coded-letter-monorepo@d16d4008f1dc5c092d4866337e74d458994039a0 --- .monorepo-source.json | 2 +- functions.php | 20 ++++++++++++++++++-- inc/crypto-payments.php | 2 +- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 7 ++++++- style.css | 2 +- 7 files changed, 30 insertions(+), 9 deletions(-) diff --git a/.monorepo-source.json b/.monorepo-source.json index 7bc86e7..4a9da44 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@a77bec7c53bdc6be426d98bce066d4c7d9688d16", + "source": "coded-letter/coded-letter-monorepo@d16d4008f1dc5c092d4866337e74d458994039a0", "sourcePath": "workspace/backend/wordpress/themes/free/funkycommerce-headless", "installSlug": "funkycommerce-headless", "kind": "theme", diff --git a/functions.php b/functions.php index 70363b6..f947bd2 100644 --- a/functions.php +++ b/functions.php @@ -9,7 +9,7 @@ exit; } -define( 'FUNKYCOMMERCE_HEADLESS_VERSION', '1.2.14' ); +define( 'FUNKYCOMMERCE_HEADLESS_VERSION', '1.2.15' ); /** * Whether Superfunky Pro is active and licensed. @@ -1100,7 +1100,23 @@ static function ( $matches ) { } /** - * Run the native content pipeline before repairing legacy CSS formatting. + * Disable automatic paragraph formatting across WordPress-rendered content. + */ +function funkycommerce_disable_content_wpautop() { + $filters = array( + 'the_content', + 'the_excerpt', + 'woocommerce_short_description', + ); + + foreach ( $filters as $filter ) { + remove_filter( $filter, 'wpautop' ); + } +} +add_action( 'init', 'funkycommerce_disable_content_wpautop', PHP_INT_MAX ); + +/** + * Run the content pipeline without automatic paragraph formatting. */ function funkycommerce_filter_headless_content( $content, $filter = 'the_content' ) { $filtered = funkycommerce_with_headless_shortcode_markers( diff --git a/inc/crypto-payments.php b/inc/crypto-payments.php index a09d08b..7ef54b1 100644 --- a/inc/crypto-payments.php +++ b/inc/crypto-payments.php @@ -215,7 +215,7 @@ public function is_available() { public function payment_fields() { if ( $this->description ) { - echo wp_kses_post( wpautop( $this->description ) ); + echo wp_kses_post( $this->description ); } $config = funkycommerce_crypto_gateway_settings(); $first_asset = array_key_first( $config['assets'] ); diff --git a/package-lock.json b/package-lock.json index e54dee8..d6cfb4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "funkycommerce-headless-theme", - "version": "1.2.14", + "version": "1.2.15", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "funkycommerce-headless-theme", - "version": "1.2.14", + "version": "1.2.15", "devDependencies": { "autoprefixer": "^10.4.20", "esbuild": "^0.28.2", diff --git a/package.json b/package.json index a3fe247..6549a9e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "funkycommerce-headless-theme", "private": true, - "version": "1.2.14", + "version": "1.2.15", "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 f6e2e20..debd107 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.14 +Stable tag: 1.2.15 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -15,6 +15,11 @@ 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.15 highlights == + +* Disables automatic paragraph and line-break insertion across WordPress-rendered content. +* Applies the same formatting policy to posts, pages, excerpts, and WooCommerce short descriptions. + == 1.2.14 highlights == * Preserves complete Gutenberg Custom HTML blocks through headless content formatting. diff --git a/style.css b/style.css index 392eccb..6bd4b8f 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.14 +Version: 1.2.15 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