Plugin Directory

Changeset 986135


Ignore:
Timestamp:
09/10/2014 06:56:47 AM (12 years ago)
Author:
chriswallace
Message:

Fixed issue with duplicate images on non-portfolio posts.

Location:
freefolio/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • freefolio/trunk/README.txt

    r984971 r986135  
    55Requires at least: 3.8
    66Tested up to: 4.0
    7 Stable tag: 1.1.2
     7Stable tag: 1.1.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    112112== Changelog ==
    113113
     114= 1.1.3 =
     115* Removed duplicate post image on non-portfolio post types
     116
    114117= 1.1.2 =
    115118* Cleaned up responsive grid styles
  • freefolio/trunk/class.Freefolio.php

    r984929 r986135  
    401401   */
    402402  function prepend_featured_image( $content ) {
    403     global $_wp_theme_features;
    404     if( ! current_theme_supports( 'jetpack-portfolio' ) || ( current_theme_supports( 'jetpack-portfolio' ) && ! $_wp_theme_features['jetpack-portfolio'][0]['has-featured-image'] ) ){
     403    global $_wp_theme_features, $post;
     404
     405    if( get_post_type( $post ) !== 'jetpack-portfolio' )
     406      return $content;
     407
     408    if( ! current_theme_supports( 'jetpack-portfolio' ) || ( current_theme_supports( 'jetpack-portfolio' ) && ! $_wp_theme_features['jetpack-portfolio'][0]['has-featured-image'] ) )
    405409      $content = get_the_post_thumbnail( $post->ID, 'original' ) . $content;
    406     }
     410
    407411    return $content;
    408412  }
  • freefolio/trunk/freefolio.php

    r984971 r986135  
    1515 * Plugin URI:        http://wordpress.org/plugins/freefolio/
    1616 * Description:       Adds a portfolio to your WordPress website.
    17  * Version:           1.1.2
     17 * Version:           1.1.3
    1818 * Author:            UpThemes
    1919 * Author URI:        https://upthemes.com
Note: See TracChangeset for help on using the changeset viewer.