Skip to content
Open
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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
24 changes: 0 additions & 24 deletions wp-content/themes/core/assets/js/editor/block-animations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
};

Expand Down
Loading