WordPress.org

Plugin Directory

Changeset 579402


Ignore:
Timestamp:
07/30/12 18:29:18 (21 months ago)
Author:
SteveAtty
Message:

Version 2.14 - Fixes Curl checking errors caused by Facebook

Location:
wordbooker
Files:
2 edited
17 copied

Legend:

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

    r555357 r579402  
    66Requires at least: 2.9 
    77Tested up to: 3.4 
    8 Stable tag: 2.1.13 
     8Stable tag: 2.1.14 
    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.14 30/07/2012 = 
     119- Fixes a problem with Curl detection caused by FB changing things without telling people. 
    117120 
    118121= Version 2.1.13 09/06/2012 = 
  • wordbooker/tags/2.14/wordbooker.php

    r555357 r579402  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.13 
     8Version: 2.1.14 
    99*/ 
    1010 
     
    3939define('WORDBOOKER_DEBUG', false); 
    4040define('WORDBOOKER_TESTING', false); 
    41 define('WORDBOOKER_CODE_RELEASE',"2.1.13 R01 - Live to Fight Another Day"); 
     41define('WORDBOOKER_CODE_RELEASE',"2.1.14 R00 - One Foot Before The Other"); 
    4242 
    4343# For Troubleshooting  
     
    12741274    if (function_exists('curl_init')) { 
    12751275      $ch = curl_init(); 
    1276        curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/platform'); 
     1276       curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/wordbooker'); 
    12771277       curl_setopt($ch, CURLOPT_HEADER, 0); 
    12781278       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
     
    12831283       $x=json_decode($curlcontent); 
    12841284       $curlstatus=__("Curl is available but cannot access Facebook - This is a problem (",'wordbooker').curl_errno($ch)." - ". curl_error($ch) ." )"; 
    1285        if ($x->name=="Facebook Platform") {$curlstatus=__("Curl is available and can access Facebook - All is OK",'wordbooker');} 
     1285       if ($x->name=="Wordbooker") {$curlstatus=__("Curl is available and can access Facebook - All is OK",'wordbooker');} 
    12861286     curl_close($ch); 
    12871287    } 
     
    25612561    } 
    25622562 
    2563     if ( !wordbooker_get_userdata($wb_user_id)) { 
     2563    if ( !wordbooker_get_userdata($post->post_author)) { 
    25642564        wordbooker_debugger("No Settings for ".$post->post_author." so using default author settings",' ',$post->ID,80); 
    2565         $wb_user_id=$wordbooker_settings["wordbooker_default_author"]; } 
     2565        $wb_user_id=$wordbooker_settings["wordbooker_default_author"];  
    25662566        # New get the user level settings from the DB 
    25672567        $wordbooker_user_settings_id="wordbookuser".$blog_id; 
     
    25852585            } 
    25862586        } 
    2587     #} 
     2587    } 
    25882588    # OK now lets get the settings from the POST array 
    25892589    foreach (array_keys($_POST) as $key ) { 
  • wordbooker/trunk/readme.txt

    r555357 r579402  
    66Requires at least: 2.9 
    77Tested up to: 3.4 
    8 Stable tag: 2.1.13 
     8Stable tag: 2.1.14 
    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.14 30/07/2012 = 
     119- Fixes a problem with Curl detection caused by FB changing things without telling people. 
    117120 
    118121= Version 2.1.13 09/06/2012 = 
  • wordbooker/trunk/wordbooker.php

    r555357 r579402  
    66Author: Steve Atty  
    77Author URI: http://wordbooker.tty.org.uk 
    8 Version: 2.1.13 
     8Version: 2.1.14 
    99*/ 
    1010 
     
    3939define('WORDBOOKER_DEBUG', false); 
    4040define('WORDBOOKER_TESTING', false); 
    41 define('WORDBOOKER_CODE_RELEASE',"2.1.13 R01 - Live to Fight Another Day"); 
     41define('WORDBOOKER_CODE_RELEASE',"2.1.14 R00 - One Foot Before The Other"); 
    4242 
    4343# For Troubleshooting  
     
    12741274    if (function_exists('curl_init')) { 
    12751275      $ch = curl_init(); 
    1276        curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/platform'); 
     1276       curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/wordbooker'); 
    12771277       curl_setopt($ch, CURLOPT_HEADER, 0); 
    12781278       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
     
    12831283       $x=json_decode($curlcontent); 
    12841284       $curlstatus=__("Curl is available but cannot access Facebook - This is a problem (",'wordbooker').curl_errno($ch)." - ". curl_error($ch) ." )"; 
    1285        if ($x->name=="Facebook Platform") {$curlstatus=__("Curl is available and can access Facebook - All is OK",'wordbooker');} 
     1285       if ($x->name=="Wordbooker") {$curlstatus=__("Curl is available and can access Facebook - All is OK",'wordbooker');} 
    12861286     curl_close($ch); 
    12871287    } 
     
    25612561    } 
    25622562 
    2563     if ( !wordbooker_get_userdata($wb_user_id)) { 
     2563    if ( !wordbooker_get_userdata($post->post_author)) { 
    25642564        wordbooker_debugger("No Settings for ".$post->post_author." so using default author settings",' ',$post->ID,80); 
    2565         $wb_user_id=$wordbooker_settings["wordbooker_default_author"]; } 
     2565        $wb_user_id=$wordbooker_settings["wordbooker_default_author"];  
    25662566        # New get the user level settings from the DB 
    25672567        $wordbooker_user_settings_id="wordbookuser".$blog_id; 
     
    25852585            } 
    25862586        } 
    2587     #} 
     2587    } 
    25882588    # OK now lets get the settings from the POST array 
    25892589    foreach (array_keys($_POST) as $key ) { 
Note: See TracChangeset for help on using the changeset viewer.