Plugin Directory

Changeset 2364264


Ignore:
Timestamp:
08/18/2020 07:37:55 PM (6 years ago)
Author:
smashballoon
Message:

Added extra check to share text explode. Fixed shortcode setting typo.

Location:
custom-facebook-feed/tags/2.16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-facebook-feed/tags/2.16/custom-facebook-feed-admin.php

    r2355776 r2364264  
    40934093
    40944094                    <tr>
    4095                         <th class="bump-left"><label class="bump-left"><?php _e('Is Facebook Page restricted?'); ?></label><code class="cff_shortcode"> restricedpage
    4096                         Eg: restricedpage=true</code></th>
     4095                        <th class="bump-left"><label class="bump-left"><?php _e('Is Facebook Page restricted?'); ?></label><code class="cff_shortcode"> restrictedpage
     4096                        Eg: restrictedpage=true</code></th>
    40974097                        <td>
    40984098                            <input name="cff_restricted_page" type="checkbox" id="cff_restricted_page" <?php if($cff_restricted_page == true) echo "checked"; ?> />
  • custom-facebook-feed/tags/2.16/custom-facebook-feed.php

    r2359204 r2364264  
    21732173                    //Remove "see more" text from post text so isn't included when shared
    21742174                    $cff_post_text_to_share = '';
    2175                     if( strpos($cff_post_text, '<span class="cff-expand">') ){
    2176                         $cff_post_text_to_share = explode('<span class="cff-expand">', $cff_post_text)[0];
     2175                    if( strpos($cff_post_text, '<span class="cff-expand">') !== false ){
     2176                        $cff_post_text_to_share = explode('<span class="cff-expand">', $cff_post_text);
     2177                        if( is_array($cff_post_text_to_share) ) $cff_post_text_to_share = $cff_post_text_to_share[0];
    21772178                    }
    21782179
Note: See TracChangeset for help on using the changeset viewer.