diff --git a/aeria.php b/aeria.php index 3c9a61a..bbf36e6 100755 --- a/aeria.php +++ b/aeria.php @@ -5,14 +5,14 @@ * Author: Caffeina Srl * Author URI: http://caffeina.co * Plugin URI: https://github.com/CaffeinaLab/aeria - * Version: 1.3.0 + * Version: 1.3.1 */ // Exit if accessed directly if( false === defined('ABSPATH') ) exit; // The Framework version -define('AERIA','1.2.0'); +define('AERIA','1.3.1'); // Store whether or not we're in the admin if( false === defined('IS_ADMIN') ) define( 'IS_ADMIN', is_admin() ); diff --git a/classes/AeriaPost.php b/classes/AeriaPost.php index 09b837f..3eb9047 100644 --- a/classes/AeriaPost.php +++ b/classes/AeriaPost.php @@ -112,6 +112,8 @@ protected function get_thumbs(){ if($att = get_post_thumbnail_id($this->id)){ $imgdata = wp_get_attachment_image_src($att,'full'); $results['big'] = $imgdata[0]; + $imgdata = wp_get_attachment_image_src($att,'medium'); + $results['medium'] = $imgdata[0]; $imgdata = wp_get_attachment_image_src($att,'thumbnail'); $results['small'] = $imgdata[0]; } diff --git a/metadata.json b/metadata.json index a9b3bdd..088abab 100644 --- a/metadata.json +++ b/metadata.json @@ -4,11 +4,11 @@ "homepage": "http://labs.caffeina.co/tech/aeria", "download_url": "https://github.com/CaffeinaLab/aeria/archive/master.zip", - "version": "1.3.0", + "version": "1.3.1", "requires": "3.5", "tested": "4.0", - "last_updated": "2014-12-05 11:00:00", - "upgrade_notice": "[New] User Profile upload photo", + "last_updated": "2015-01-22 12:00:00", + "upgrade_notice": "[New] Get Post Medium Size", "author": "Caffeina", "author_homepage": "http://caffeina.co/",