Skip to content

Commit

Permalink
Merge pull request #457 from InfoAmazonia/develop
Browse files Browse the repository at this point in the history
Fix storymap regression; release 2.12.4
  • Loading branch information
leopiccionia authored Nov 27, 2024
2 parents ab3168f + 69d616c commit 18a7f4d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== JEO ===
Contributors: earthjournalism
Tested up to: 6.6.2
Stable tag: 2.12.3
Stable tag: 2.12.4
Requires PHP: 7.2
Requires at least: 6.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Version: 2.12.3
Version: 2.12.4

The JEO plugin acts as a geojournalism platform that allows news organizations, bloggers and NGOs to publish news stories as layers of information on digital maps.

Expand Down Expand Up @@ -49,7 +49,7 @@ After activating the plugin, a new item will appear on the WordPress dashboard:

== Changelog ==

= 2.12.3 =
= 2.12.4 =
* bugfix: Fix position handling on storymap editor

= 2.12.2 =
Expand Down
4 changes: 2 additions & 2 deletions src/jeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @wordpress-plugin
* Plugin Name: JEO WP
* Description: Interactive Map blocks for Wordpress Gutenberg
* Version: 2.12.3
* Version: 2.12.4
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: jeo
Expand All @@ -22,7 +22,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'JEO_VERSION', '2.12.3' );
define( 'JEO_VERSION', '2.12.4' );

define( 'JEO_BASEPATH', plugin_dir_path( __FILE__ ) );
define( 'JEO_BASEURL', plugins_url('', __FILE__) );
Expand Down
10 changes: 5 additions & 5 deletions src/js/src/map-blocks/storymap-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ const StoryMapEditor = ( {
useEffect( () => {
const currentSlide = attributes.slides[ currentSlideIndex ];
setViewState( {
latitude: currentSlide.latitude || mapDefaults.lat,
longitude: currentSlide.longitude || mapDefaults.lng,
zoom: currentSlide.zoom || mapDefaults.zoom,
bearing: currentSlide.bearing || 0,
pitch: currentSlide.pitch || 0,
latitude: currentSlide?.latitude || mapDefaults.lat,
longitude: currentSlide?.longitude || mapDefaults.lng,
zoom: currentSlide?.zoom || mapDefaults.zoom,
bearing: currentSlide?.bearing || 0,
pitch: currentSlide?.pitch || 0,
} );
}, [ attributes.slides, currentSlideIndex, setViewState ] );

Expand Down
6 changes: 3 additions & 3 deletions trunk/readme.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== JEO ===
Contributors: earthjournalism
Tested up to: 6.6.2
Stable tag: 2.12.3
Stable tag: 2.12.4
Requires PHP: 7.2
Requires at least: 6.2
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Version: 2.12.3
Version: 2.12.4

The JEO plugin acts as a geojournalism platform that allows news organizations, bloggers and NGOs to publish news stories as layers of information on digital maps.

Expand Down Expand Up @@ -49,7 +49,7 @@ After activating the plugin, a new item will appear on the WordPress dashboard:

== Changelog ==

= 2.12.3 =
= 2.12.4 =
* bugfix: Fix position handling on storymap editor

= 2.12.2 =
Expand Down

0 comments on commit 18a7f4d

Please sign in to comment.