Skip to content
Merged
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 .monorepo-source.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
20 changes: 18 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion inc/crypto-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand Down
4 changes: 2 additions & 2 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading