Skip to content

Commit

Permalink
Feature Get Medium Size Post Image
Browse files Browse the repository at this point in the history
Signed-off-by: Graziano Vincini <[email protected]>
  • Loading branch information
vincio87 committed Jan 22, 2015
1 parent 6195e8b commit 200e7d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aeria.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down
2 changes: 2 additions & 0 deletions classes/AeriaPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down

0 comments on commit 200e7d5

Please sign in to comment.