WordPress.org

Plugin Directory

Changeset 1695669


Ignore:
Timestamp:
07/13/17 10:30:00 (3 months ago)
Author:
likebtn
Message:

Update

Location:
likebtn-like-button
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • likebtn-like-button/tags/2.3.4/includes/likebtn_like_button_pagination.class.php

    r1621996 r1695669  
    9191 
    9292    function urlFriendly($value = "%") { 
    93         if (eregi('^ *$', $value)) { 
     93        if (preg_match('/^ *$/', $value)) { 
    9494            $this->urlF = false; 
    9595            return false; 
  • likebtn-like-button/tags/2.3.4/likebtn_like_button.php

    r1679677 r1695669  
    37373737function likebtn_shortcode($args) { 
    37383738    $entity_name = get_post_type(); 
    3739     $entity_id = get_the_ID(); 
     3739    $entity_id = likebtn_get_the_ID(); 
    37403740 
    37413741    return _likebtn_get_markup($entity_name, $entity_id, $args, '', false, false); 
     
    38063806        if (!$entity_id) { 
    38073807            $entity_name = get_post_type(); 
    3808             $entity_id = get_the_ID(); 
     3808            $entity_id = likebtn_get_the_ID(); 
    38093809        } 
    38103810        $identifier = $entity_name.'_'.$entity_id; 
     
    38263826        if (!$entity_id) { 
    38273827            $entity_name = get_post_type(); 
    3828             $entity_id = get_the_ID(); 
     3828            $entity_id = likebtn_get_the_ID(); 
    38293829        } 
    38303830        $identifier = $entity_name.'_'.$entity_id; 
     
    45274527    } 
    45284528 
    4529     $entity_id = get_the_ID();     
     4529    $entity_id = likebtn_get_the_ID();     
    45304530 
    45314531    // get the Posts/Pages IDs where we do not need to show like functionality 
     
    79247924} 
    79257925 
     7926// Get current post ID taking WPML into account 
     7927function likebtn_get_the_ID() 
     7928{ 
     7929    if (class_exists('SitePress')) { 
     7930        // WPML is active 
     7931        global $sitepress; 
     7932  
     7933        return apply_filters( 'wpml_object_id', get_the_ID(), 'post', true, $sitepress->get_default_language() ); 
     7934    } else { 
     7935        return get_the_ID(); 
     7936    } 
     7937} 
     7938 
    79267939/** 
    79277940 * Buttons tab 
  • likebtn-like-button/tags/2.3.4/readme.txt

    r1679679 r1695669  
    4747*   Recording like & dislike actions in BuddyPress activity stream (votes in private groups are NOT displayed in the public activity stream). 
    4848*   Custom templates for snippets in BuddyPress activity stream. 
     49*   WPML compatible. 
    4950*   Customizable position and alignment. 
    5051*   Full access to the Like button CSS. 
  • likebtn-like-button/trunk/readme.txt

    r1679679 r1695669  
    4747*   Recording like & dislike actions in BuddyPress activity stream (votes in private groups are NOT displayed in the public activity stream). 
    4848*   Custom templates for snippets in BuddyPress activity stream. 
     49*   WPML compatible. 
    4950*   Customizable position and alignment. 
    5051*   Full access to the Like button CSS. 
Note: See TracChangeset for help on using the changeset viewer.