Skip to content

Commit

Permalink
Merge branch 'master' into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Oct 29, 2024
2 parents 7bb44a0 + 437c0fa commit f094931
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.59.1] - 2024-10-28

- TMS-1075-fix: Early return added to ImageGalleryFormatter

## [1.59.0] - 2024-10-24

- TMS-1075: Redipress 2 filters

## [1.58.3] - 2024-09-25
Expand Down
4 changes: 4 additions & 0 deletions lib/Formatters/ImageGalleryFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public function hooks() : void {
* @return array
*/
public function format( array $data ) : array {
if ( empty( $data['rows'] ) ) {
return $data;
}

$data['rows'] = array_map( static function ( $item ) {
$item = \TMS\Theme\Base\Formatters\ImageFormatter::format( $item );

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Theme Name: TMS Theme Base
* Description: Tampere Multisite Base Theme
* Domain Path: /lang
* Version: 1.58.3
* Version: 1.59.1
* Author: Geniem
* Author URI: https://geniem.fi
* Text Domain: tms-theme-base
Expand Down

0 comments on commit f094931

Please sign in to comment.