Plugin Directory

Changeset 640073


Ignore:
Timestamp:
12/16/2012 04:21:22 PM (13 years ago)
Author:
TM3909
Message:

1.4.5 Fixed in_array issue when checking for CPT options.

Location:
wpsocialite/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wpsocialite/trunk/readme.txt

    r620950 r640073  
    55Requires at least: 3.0
    66Tested up to: 3.4.2
    7 Stable tag: 1.4.4
     7Stable tag: 1.4.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7474== Changelog ==
    7575
     76= 1.4.5 =
     77* Fixed in_array error being thrown due to post type check.
     78
    7679= 1.4.4 =
    7780* Fixed WP_Trip_excerpt Issue.
     
    105108== Upgrade Notice ==
    106109
     110= 1.4.5 =
     111* Fixed in_array error being thrown due to post type check.
     112
    107113= 1.4.4 =
    108114* Fixes WP_Trip_excerpt Issue.
  • wpsocialite/trunk/wpsocialite.php

    r620950 r640073  
    55Description: No one likes long load times! Yet we all want to be able to share our content via Facebook, Twitter, and all other social networks. These take a long time to load. Paradox? Not anymore! With WPSocialite (utilizing David Bushnell's amazing SocialiteJS plugin [http://www.socialitejs.com/]) we can manage the loading process of our social sharing links. Load them on hover, on page scroll, and more!
    66Author: Tom Morton
    7 Version: 1.4.4
     7Version: 1.4.5
    88Author URI: http://twmorton.com/
    99
     
    204204                return $content;
    205205
    206             if(!in_array($pt,$post_types)) //Do not display on the specified post type
    207                 return $content;
    208 
     206            if($post_types){
     207                if(!in_array($pt,$post_types)) //Do not display on the specified post type
     208                    return $content;
     209            }
    209210            if(is_feed())
    210211                return $content; //do not include social markup in feed
     
    410411        function wpsocialite_post_types(){
    411412            $value = get_option('wpsocialite_post_types',array());
     413            if($value === ''){
     414                $value = array();
     415            }
    412416                $post_types = get_post_types(array('public'=>true),'objects');
    413417
Note: See TracChangeset for help on using the changeset viewer.