Updates return of sizes of thumbnails

This commit is contained in:
weryques 2018-05-21 16:34:36 -03:00
parent 24d7ac7260
commit afa1903c6e
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ class Collection extends Entity {
*/ */
function get_thumbnail() { function get_thumbnail() {
return array( return array(
'thumb' => get_the_post_thumbnail_url( $this->get_id(), 'post-thumbnail' ), 'thumb' => get_the_post_thumbnail_url( $this->get_id(), 'thumbnail' ),
'full' => get_the_post_thumbnail_url( $this->get_id(), 'full' ), 'full' => get_the_post_thumbnail_url( $this->get_id(), 'full' ),
'medium' => get_the_post_thumbnail_url( $this->get_id(), 'medium' ), 'medium' => get_the_post_thumbnail_url( $this->get_id(), 'medium' ),
'medium_large' => get_the_post_thumbnail_url( $this->get_id(), 'medium_large' ), 'medium_large' => get_the_post_thumbnail_url( $this->get_id(), 'medium_large' ),

View File

@ -130,7 +130,7 @@ class Item extends Entity {
*/ */
function get_thumbnail() { function get_thumbnail() {
return array( return array(
'thumb' => get_the_post_thumbnail_url( $this->get_id(), 'post-thumbnail' ), 'thumb' => get_the_post_thumbnail_url( $this->get_id(), 'thumbnail' ),
'full' => get_the_post_thumbnail_url( $this->get_id(), 'full' ), 'full' => get_the_post_thumbnail_url( $this->get_id(), 'full' ),
'medium' => get_the_post_thumbnail_url( $this->get_id(), 'medium' ), 'medium' => get_the_post_thumbnail_url( $this->get_id(), 'medium' ),
'medium_large' => get_the_post_thumbnail_url( $this->get_id(), 'medium_large' ), 'medium_large' => get_the_post_thumbnail_url( $this->get_id(), 'medium_large' ),