WordPress.org

Plugin Directory

Changeset 623408


Ignore:
Timestamp:
11/10/12 17:10:49 (18 months ago)
Author:
SteveAtty
Message:

Version 2.1.24 - the Fix Jetpack problem release

Location:
wordbooker
Files:
4 deleted
2 edited
27 copied

Legend:

Unmodified
Added
Removed
  • wordbooker/tags/2.1.24/readme.txt

    r617985 r623408  
    66Requires at least: 2.9 
    77Tested up to: 3.4.2 
    8 Stable tag: 2.1.23 
     8Stable tag: 2.1.24 
    99 
    1010This plugin allows you to cross-post your blog posts to your Facebook Wall and to any Facebook Fan Page / Group that you are an administrator for.  
     
    115115 
    116116== Changelog == 
     117 
     118= Version 2.1.24 10/11/12 = 
     119- Fixed a bug where setting Meta Tag length to 0 got rid of the og: description tag 
     120- Added code to turn off Jetpacks open graph tags if you are using Wordbookers. 
    117121 
    118122= Version 2.1.23 27/10/2012 = 
     
    428432== Upgrade Notice == 
    429433 
     434= 2.1.24 = 
     435Fixes a problem with Version 2 of Jetpack 
     436 
    430437= 2.1.21 = 
    431438Changes to og:tag images. 
  • wordbooker/tags/2.1.24/wordbooker.php

    r617985 r623408  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.23 
     8Version: 2.1.24 
    99*/ 
    1010 
     
    3939    define('WORDBOOKER_DEBUG', false); 
    4040    define('WORDBOOKER_TESTING', false); 
    41     define('WORDBOOKER_CODE_RELEASE',"2.1.23 R00 - Under The Sun"); 
     41    define('WORDBOOKER_CODE_RELEASE',"2.1.24 R00 - Some Kind of Wizard"); 
    4242 
    4343    # For Troubleshooting  
     
    19421942    { # Not a single post so we only need the og:type tag 
    19431943        echo '<meta property="og:type" content="blog" /> '; 
    1944         #echo '<meta property="og:description" content="'.$bdesc.'" /> '; 
    1945     } 
    1946     if ($meta_length = wordbooker_get_option('wordbooker_description_meta_length')) { 
    1947         if (is_single() || is_page()) { 
    1948             $excerpt=get_post_meta($post->ID, '_wordbooker_extract', TRUE); 
    1949             if(strlen($excerpt) < 5 ) { 
    1950                 $excerpt=wordbooker_post_excerpt($post->post_content,250); 
    1951                 update_post_meta($post->ID, '_wordbooker_extract', $excerpt); 
    1952             } 
    1953             # If we've got an excerpt use that instead 
    1954             if ((strlen($post->post_excerpt)>3) && (strlen($excerpt) <=5)) {  
    1955                 $excerpt=$post->post_excerpt;  
    1956                 $description = str_replace('"','&quot;',$post->post_content); 
    1957                 $excerpt = wordbooker_post_excerpt($description,1000); 
    1958                 $excerpt = preg_replace('/(\r|\n)+/',' ',$excerpt); 
    1959                 $excerpt = preg_replace('/\s\s+/',' ',$excerpt); 
    1960      
    1961                 update_post_meta($post->ID, '_wordbooker_extract', $excerpt); 
    1962             } 
    1963             # Now if we've got something put the meta tag out. 
    1964             if (isset($excerpt)){  
    1965                 if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", htmlspecialchars($excerpt,ENT_QUOTES));} 
    1966                 $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", htmlspecialchars($excerpt,ENT_QUOTES)); 
    1967                 echo $meta_string; 
    1968             } 
    1969         } 
    1970     else 
    1971         {        
    1972             if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", $bdesc); } 
    1973             $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", $bdesc); 
     1944    } 
     1945    $meta_length=0; 
     1946    $meta_length = $meta_length + wordbooker_get_option('wordbooker_description_meta_length'); 
     1947    if (is_single() || is_page()) { 
     1948        $excerpt=get_post_meta($post->ID, '_wordbooker_extract', TRUE); 
     1949        if(strlen($excerpt) < 5 ) { 
     1950            $excerpt=wordbooker_post_excerpt($post->post_content,250); 
     1951            update_post_meta($post->ID, '_wordbooker_extract', trim($excerpt)); 
     1952        } 
     1953        # If we've got an excerpt use that instead 
     1954        if ((strlen($post->post_excerpt)>3) && (strlen($excerpt) <=5)) {  
     1955            $excerpt=$post->post_excerpt;  
     1956            $description = str_replace('"','&quot;',$post->post_content); 
     1957            $excerpt = wordbooker_post_excerpt($description,1000); 
     1958            $excerpt = preg_replace('/(\r|\n)+/',' ',$excerpt); 
     1959            $excerpt = preg_replace('/\s\s+/',' ',$excerpt); 
     1960 
     1961            update_post_meta($post->ID, '_wordbooker_extract', trim($excerpt)); 
     1962        } 
     1963        # Now if we've got something put the meta tag out. 
     1964        if (isset($excerpt)){  
     1965            if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", htmlspecialchars(trim($excerpt),ENT_QUOTES));} 
     1966            $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", htmlspecialchars(trim($excerpt),ENT_QUOTES)); 
     1967            # convert blank lines into spaces. 
     1968            $meta_string=str_replace("\r\n", "   ", $meta_string);  
    19741969            echo $meta_string; 
    19751970        } 
     1971    } 
     1972else 
     1973    {        
     1974        if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", $bdesc); } 
     1975        $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", trim($bdesc)); 
     1976        echo $meta_string; 
    19761977    } 
    19771978    echo '<!-- End Wordbooker og tags -->'; 
     
    28762877# If they've disabled Wordbooker then we don't need to load any of these. 
    28772878if (!isset($wordbooker_disabled)){ 
     2879    $wordbooker_disable_og=wordbooker_get_option('wordbooker_fb_disable_og'); 
     2880    if ((function_exists('jetpack_og_tags')) && (!isset($wordbooker_disable_og))){ 
     2881        remove_action( 'wp_head', 'jetpack_og_tags' );  
     2882    } 
    28782883    include("includes/wordbooker_wb_widget.php"); 
    28792884    include("includes/wordbooker_fb_widget.php"); 
  • wordbooker/trunk/readme.txt

    r617985 r623408  
    66Requires at least: 2.9 
    77Tested up to: 3.4.2 
    8 Stable tag: 2.1.23 
     8Stable tag: 2.1.24 
    99 
    1010This plugin allows you to cross-post your blog posts to your Facebook Wall and to any Facebook Fan Page / Group that you are an administrator for.  
     
    115115 
    116116== Changelog == 
     117 
     118= Version 2.1.24 10/11/12 = 
     119- Fixed a bug where setting Meta Tag length to 0 got rid of the og: description tag 
     120- Added code to turn off Jetpacks open graph tags if you are using Wordbookers. 
    117121 
    118122= Version 2.1.23 27/10/2012 = 
     
    428432== Upgrade Notice == 
    429433 
     434= 2.1.24 = 
     435Fixes a problem with Version 2 of Jetpack 
     436 
    430437= 2.1.21 = 
    431438Changes to og:tag images. 
  • wordbooker/trunk/wordbooker.php

    r617985 r623408  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.23 
     8Version: 2.1.24 
    99*/ 
    1010 
     
    3939    define('WORDBOOKER_DEBUG', false); 
    4040    define('WORDBOOKER_TESTING', false); 
    41     define('WORDBOOKER_CODE_RELEASE',"2.1.23 R00 - Under The Sun"); 
     41    define('WORDBOOKER_CODE_RELEASE',"2.1.24 R00 - Some Kind of Wizard"); 
    4242 
    4343    # For Troubleshooting  
     
    19421942    { # Not a single post so we only need the og:type tag 
    19431943        echo '<meta property="og:type" content="blog" /> '; 
    1944         #echo '<meta property="og:description" content="'.$bdesc.'" /> '; 
    1945     } 
    1946     if ($meta_length = wordbooker_get_option('wordbooker_description_meta_length')) { 
    1947         if (is_single() || is_page()) { 
    1948             $excerpt=get_post_meta($post->ID, '_wordbooker_extract', TRUE); 
    1949             if(strlen($excerpt) < 5 ) { 
    1950                 $excerpt=wordbooker_post_excerpt($post->post_content,250); 
    1951                 update_post_meta($post->ID, '_wordbooker_extract', $excerpt); 
    1952             } 
    1953             # If we've got an excerpt use that instead 
    1954             if ((strlen($post->post_excerpt)>3) && (strlen($excerpt) <=5)) {  
    1955                 $excerpt=$post->post_excerpt;  
    1956                 $description = str_replace('"','&quot;',$post->post_content); 
    1957                 $excerpt = wordbooker_post_excerpt($description,1000); 
    1958                 $excerpt = preg_replace('/(\r|\n)+/',' ',$excerpt); 
    1959                 $excerpt = preg_replace('/\s\s+/',' ',$excerpt); 
    1960      
    1961                 update_post_meta($post->ID, '_wordbooker_extract', $excerpt); 
    1962             } 
    1963             # Now if we've got something put the meta tag out. 
    1964             if (isset($excerpt)){  
    1965                 if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", htmlspecialchars($excerpt,ENT_QUOTES));} 
    1966                 $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", htmlspecialchars($excerpt,ENT_QUOTES)); 
    1967                 echo $meta_string; 
    1968             } 
    1969         } 
    1970     else 
    1971         {        
    1972             if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", $bdesc); } 
    1973             $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", $bdesc); 
     1944    } 
     1945    $meta_length=0; 
     1946    $meta_length = $meta_length + wordbooker_get_option('wordbooker_description_meta_length'); 
     1947    if (is_single() || is_page()) { 
     1948        $excerpt=get_post_meta($post->ID, '_wordbooker_extract', TRUE); 
     1949        if(strlen($excerpt) < 5 ) { 
     1950            $excerpt=wordbooker_post_excerpt($post->post_content,250); 
     1951            update_post_meta($post->ID, '_wordbooker_extract', trim($excerpt)); 
     1952        } 
     1953        # If we've got an excerpt use that instead 
     1954        if ((strlen($post->post_excerpt)>3) && (strlen($excerpt) <=5)) {  
     1955            $excerpt=$post->post_excerpt;  
     1956            $description = str_replace('"','&quot;',$post->post_content); 
     1957            $excerpt = wordbooker_post_excerpt($description,1000); 
     1958            $excerpt = preg_replace('/(\r|\n)+/',' ',$excerpt); 
     1959            $excerpt = preg_replace('/\s\s+/',' ',$excerpt); 
     1960 
     1961            update_post_meta($post->ID, '_wordbooker_extract', trim($excerpt)); 
     1962        } 
     1963        # Now if we've got something put the meta tag out. 
     1964        if (isset($excerpt)){  
     1965            if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", htmlspecialchars(trim($excerpt),ENT_QUOTES));} 
     1966            $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", htmlspecialchars(trim($excerpt),ENT_QUOTES)); 
     1967            # convert blank lines into spaces. 
     1968            $meta_string=str_replace("\r\n", "   ", $meta_string);  
    19741969            echo $meta_string; 
    19751970        } 
     1971    } 
     1972else 
     1973    {        
     1974        if ($meta_length > 0 ) {$meta_string .= sprintf("<meta name=\"description\" content=\"%s\" /> ", $bdesc); } 
     1975        $meta_string .= sprintf("<meta property=\"og:description\" content=\"%s\" /> ", trim($bdesc)); 
     1976        echo $meta_string; 
    19761977    } 
    19771978    echo '<!-- End Wordbooker og tags -->'; 
     
    28762877# If they've disabled Wordbooker then we don't need to load any of these. 
    28772878if (!isset($wordbooker_disabled)){ 
     2879    $wordbooker_disable_og=wordbooker_get_option('wordbooker_fb_disable_og'); 
     2880    if ((function_exists('jetpack_og_tags')) && (!isset($wordbooker_disable_og))){ 
     2881        remove_action( 'wp_head', 'jetpack_og_tags' );  
     2882    } 
    28782883    include("includes/wordbooker_wb_widget.php"); 
    28792884    include("includes/wordbooker_fb_widget.php"); 
Note: See TracChangeset for help on using the changeset viewer.