Skip to content

Commit

Permalink
Version 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Oct 17, 2017
1 parent 24206fe commit f848fc9
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Simple Location #
**Contributors:** dshanske
**Tags:** geolocation, geo, maps, location, indieweb
**Stable tag:** 3.2.1
**Stable tag:** 3.2.2
**Requires at least:** 4.7
**Tested up to:** 4.8.1
**Tested up to:** 4.8.2
**Requires PHP:** 5.3
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -50,6 +51,9 @@ will now be required to show maps for services that require API keys.

## Changelog ##

### Version 3.2.2 ###
* Allow setting timezone from Micropub posts(requires update to Micropub plugin)

### Version 3.2.1 ###
* Show settings for current default map provider only
* Add style settings for each map provider ( props @miklb )
Expand Down
7 changes: 7 additions & 0 deletions includes/class-post-timezone.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ public static function init() {
add_filter( 'get_the_modified_time' , array( 'Post_Timezone', 'get_the_time' ), 12, 2 );
add_action( 'post_submitbox_misc_actions', array( 'Post_Timezone', 'post_submitbox' ) );
add_action( 'save_post', array( 'Post_Timezone', 'postbox_save_post_meta' ) );
add_action( 'after_micropub', array( 'Post_Timezone', 'after_micropub' ), 10, 2 );
}

public static function after_micropub( $input, $args ) {
if ( array_key_exists( 'timezone', $args ) ) {
update_post_meta( $args['ID'], 'geo_timezone', $args['timezone'] );
}
}

public static function post_submitbox() {
Expand Down
6 changes: 3 additions & 3 deletions languages/simple-location.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the same license as the Simple Location package.
msgid ""
msgstr ""
"Project-Id-Version: Simple Location 3.2.1\n"
"Project-Id-Version: Simple Location 3.2.2\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/simple-location\n"
"POT-Creation-Date: 2017-08-20 05:41:04+00:00\n"
"POT-Creation-Date: 2017-10-17 21:13:39+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -221,7 +221,7 @@ msgstr ""
msgid "Location: "
msgstr ""

#: includes/class-post-timezone.php:34
#: includes/class-post-timezone.php:41
msgid "Timezone:"
msgstr ""

Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
=== Simple Location ===
Contributors: dshanske
Tags: geolocation, geo, maps, location, indieweb
Stable tag: 3.2.1
Stable tag: 3.2.2
Requires at least: 4.7
Tested up to: 4.8.1
Tested up to: 4.8.2
Requires PHP: 5.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -50,6 +51,9 @@ will now be required to show maps for services that require API keys.

== Changelog ==

= Version 3.2.2 =
* Allow setting timezone from Micropub posts(requires update to Micropub plugin)

= Version 3.2.1 =
* Show settings for current default map provider only
* Add style settings for each map provider ( props @miklb )
Expand Down
4 changes: 2 additions & 2 deletions simple-location.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Simple Location
* Plugin URI: https://wordpress.org/plugins/simple-location/
* Description: Adds Location to Wordpress
* Version: 3.2.1
* Version: 3.2.2
* Author: David Shanske
* Author URI: https://david.shanske.com
* Text Domain: simple-location
Expand All @@ -20,7 +20,7 @@


class Simple_Location_Plugin {
public static $version = '3.2.1';
public static $version = '3.2.2';

public static function activate() {
require_once( plugin_dir_path( __FILE__ ) . 'includes/class-geo-data.php' );
Expand Down

0 comments on commit f848fc9

Please sign in to comment.