diff --git a/core.traktivity.php b/core.traktivity.php index c7e4999..4c931b4 100644 --- a/core.traktivity.php +++ b/core.traktivity.php @@ -418,7 +418,7 @@ public function publish_event( $args = array() ) { $taxonomies['trakt_type'] = esc_html__( 'Movie', 'traktivity' ); // Let's capitalize genres. $taxonomies['trakt_genre'] = array_map( 'ucwords', $event->movie->genres ); - $taxonomies['trakt_year'] = esc_html( $event->year ); + $taxonomies['trakt_year'] = esc_html( $event->movie->year ); $meta['trakt_movie_id'] = intval( $event->movie->ids->trakt ); $meta['imdb_movie_id'] = esc_html( $event->movie->ids->imdb ); diff --git a/readme.txt b/readme.txt index b06b00e..df5a675 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ === Traktivity === Contributors: jeherve Tags: Trakt.tv, TV, Activity, Track, tmdb, Movies, TV Shows, Trakt, Log -Stable tag: 1.1.2 +Stable tag: 1.1.3 Requires at least: 4.7 Tested up to: 4.7 License: GPLv2 @@ -42,6 +42,11 @@ Do you like that header image? Me too! Credit goes to [Andrew Branch](https://un == Changelog == += 1.1.3 = +Release Date: March 5, 2017 + +* Make sure Year is properly recorded for movies. + = 1.1.2 = Release Date: March 5, 2017 diff --git a/traktivity.php b/traktivity.php index 2a5c0f0..9d88c38 100644 --- a/traktivity.php +++ b/traktivity.php @@ -4,7 +4,7 @@ * Plugin URI: https://wordpress.org/plugins/traktivity * Description: Log your activity on Trakt.tv * Author: Jeremy Herve - * Version: 1.1.2 + * Version: 1.1.3 * Author URI: https://jeremy.hu * License: GPL2+ * Text Domain: traktivity @@ -15,7 +15,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); -define( 'TRAKTIVITY__VERSION', '1.1.2' ); +define( 'TRAKTIVITY__VERSION', '1.1.3' ); define( 'TRAKTIVITY__API_URL', 'https://api.trakt.tv' ); define( 'TRAKTIVITY__API_VERSION', '2' ); define( 'TRAKTIVITY__TMDB_API_URL', 'https://api.themoviedb.org' );