diff --git a/CHANGELOG.md b/CHANGELOG.md index 46710ae37..de217323e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). Each changelog entr item (Added, Changed, Depreciated, Removed, Fixed, Security). ## [2026.06] +- Fix: Animation classes accumulating in block "Additional CSS Class(es)" field. +- Fix: Search card excerpt visibility now correctly checks `has_post_excerpt()` instead of `has_post_date()`. - Chore: WordPress Core update to v7.0, plugins, Composer & NPM deps updates. update ESLint config file format. ## [2026.05] diff --git a/wp-content/themes/core/assets/js/editor/block-animations/index.js b/wp-content/themes/core/assets/js/editor/block-animations/index.js index a5869ad1f..f7eaef951 100644 --- a/wp-content/themes/core/assets/js/editor/block-animations/index.js +++ b/wp-content/themes/core/assets/js/editor/block-animations/index.js @@ -142,16 +142,9 @@ const animationControls = createHigherOrderComponent( ( BlockEdit ) => { animationPosition, } = attributes; - let blockClass = - attributes.className !== undefined ? attributes.className : ''; const blockStyles = { ...props.style }; if ( animationType !== undefined && animationType !== 'none' ) { - // set block class for animation direction & animation position, if it's not set to the default - blockClass = `${ - blockClass !== '' ? blockClass + ' ' : '' - }is-animated-on-scroll-${ animationPosition } tribe-animation-type-${ animationType } tribe-animation-direction-${ animationDirection }`; - // set block styles for animation duration if ( animationDuration !== undefined && animationDuration ) { blockStyles[ '--tribe-animation-speed' ] = animationDuration; @@ -165,31 +158,14 @@ const animationControls = createHigherOrderComponent( ( BlockEdit ) => { blockStyles[ '--tribe-animation-delay' ] = animationDelay; } - // set block class for disabling animation delays on mobile - if ( - animationMobileDisableDelay !== undefined && - animationMobileDisableDelay - ) { - blockClass = `${ blockClass } tribe-animation-mobile-disable-delay`; - } - // set block styles for animation easing if ( animationEasing !== undefined && animationEasing ) { blockStyles[ '--tribe-animation-easing' ] = animationEasing; } - - // set block class for triggering animation multiple times - if ( animationTrigger !== undefined && animationTrigger ) { - blockClass = `${ blockClass } tribe-animate-multiple`; - } } const blockProps = { ...props, - attributes: { - ...attributes, - className: blockClass, - }, style: blockStyles, };