Plugin Directory

Changeset 1157780


Ignore:
Timestamp:
05/11/2015 09:07:13 AM (11 years ago)
Author:
oriolo
Message:

version 0.9.3 thumbnails bug fix

Location:
goods-catalog
Files:
45 added
3 edited

Legend:

Unmodified
Added
Removed
  • goods-catalog/trunk/goods-cat.php

    r1154409 r1157780  
    55  Plugin URI: http://oriolo.wordpress.com/2014/03/25/goods-catalog-wordpress-plugin-that-creates-catalog-of-products/
    66  Description: Plugin that creates simple catalog of goods.
    7   Version: 0.9.2
     7  Version: 0.9.3
    88  Author: Irina Sokolovskaya
    99  Author URI: http://oriolo.ru/
  • goods-catalog/trunk/inc/functions.php

    r1152132 r1157780  
    208208 */
    209209function gs_thumbnails_support() {
    210     add_theme_support( 'post-thumbnails', array ('goods') );               
     210    global $_wp_theme_features;
     211
     212    if( empty($_wp_theme_features['post-thumbnails']) )
     213        $_wp_theme_features['post-thumbnails'] = array( array('goods') );
     214
     215    elseif( true === $_wp_theme_features['post-thumbnails'])
     216        return;
     217
     218    elseif( is_array($_wp_theme_features['post-thumbnails'][0]) )
     219        $_wp_theme_features['post-thumbnails'][0][] = 'goods';
     220
     221    // add_theme_support( 'post-thumbnails' );               
    211222}
    212223add_action( 'after_setup_theme', 'gs_thumbnails_support', 11 );
  • goods-catalog/trunk/readme.txt

    r1154409 r1157780  
    104104== Changelog ==
    105105
     106= 0.9.3 =
     107
     108* Thumbnails bug fix
     109
    106110= 0.9.2 =
    107111
     
    263267== Upgrade Notice ==
    264268
     269= 0.9.3 =
     270
     271Thumbnails bug fix
     272
    265273= 0.9.2 =
    266274
Note: See TracChangeset for help on using the changeset viewer.