WordPress.org

Plugin Directory

Changeset 1116848


Ignore:
Timestamp:
03/20/15 12:45:44 (3 years ago)
Author:
johneckman
Message:

update to 1.6.5

Location:
wpbook-lite
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • wpbook-lite/tags/1.6.5/README.txt

    r1087148 r1116848  
    33Tags: facebook, platform, application, blog, mirror 
    44Requires at least: 2.9 
    5 Stable tag: 1.6.4 
    6 Tested up to: 4.1 
     5Stable tag: 1.6.5 
     6Tested up to: 4.2 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353 
    5454== Changelog == 
     55 
     56= 1.6.5 =  
     57* Better suppression of unset string indices on first install 
    5558 
    5659= 1.6.4 =  
  • wpbook-lite/tags/1.6.5/wpbook-lite.php

    r1087148 r1116848  
    66Author: John Eckman 
    77Author URI: http://johneckman.com 
    8 Version: 1.6.4 
    9 Stable tag: 1.6.4 
     8Version: 1.6.5 
     9Stable tag: 1.6.5 
    1010 
    1111*/ 
     
    237237                    $wpbook_target_group,$wpbook_disable_sslverify); 
    238238      $flash = "Your settings have been saved. "; 
    239     } elseif (($wpbookLiteAdminOptions['fb_api_key'] != "") && ($wpbookLiteAdminOptions['fb_secret'] != "") && ($wpbookLiteAdminOptions['fb_admin_target'] != "")){ 
     239    } elseif ((isset($wpbookLiteAdminOptions['fb_api_key'])) && ($wpbookLiteAdminOptions['fb_api_key'] != "") && (isset($wpbookLiteAdminOptions['fb_secret'])) && ($wpbookLiteAdminOptions['fb_secret'] != "") && ($wpbookLiteAdminOptions['fb_admin_target'] != "")){ 
    240240      $flash = ""; 
    241241    } elseif (! empty( $_POST ) && ! check_admin_referer( 'update_settings', 'wpbook_lite_admin_nonce')) { 
     
    251251      $wpbookLiteAdminOptions = wpbook_lite_getAdminOptions(); 
    252252      //set the "smart" defaults on install this only works once the page has been refeshed 
    253       if ($wpbookLiteAdminOptions['wpbook_installation'] != 1) {   
     253      if ((isset($wpbookLiteAdminOptions['wpbook_installation'])) && ($wpbookLiteAdminOptions['wpbook_installation'] != 1)) {   
    254254        setAdminOptions(1,null,null,null,null,false, 
    255255                        false,false,false,false,false,7,"facebook@openparenthesis.org", 
     
    286286      echo '<form action="'. $_SERVER["REQUEST_URI"] .'" method="post">';  
    287287      echo '<p>Facebook App ID: <input type="text" name="fb_api_key" value="'; 
    288       echo htmlentities($wpbookLiteAdminOptions['fb_api_key']) .'" size="35" />'; 
    289       if(!empty($wpbookLiteAdminOptions['fb_api_key'])) { 
     288      if(isset($wpbookLiteAdminOptions['fb_api_key'])) { 
     289        echo htmlentities($wpbookLiteAdminOptions['fb_api_key']); 
     290      } 
     291      echo '" size="35" />'; 
     292      if((isset($wpbookLiteAdminOptions['fb_api_key'])) && (!empty($wpbookLiteAdminOptions['fb_api_key']))) { 
    290293        echo ' <a href="http://www.facebook.com/apps/application.php?id=' . $wpbookLiteAdminOptions['fb_api_key'] . '" target="_new"> Visit this app profile</a>'; 
    291294      } 
     
    293296      echo '<p>Facebook App Secret: '; 
    294297      echo '<input type="text" name="fb_secret" value="'; 
    295       echo htmlentities($wpbookLiteAdminOptions['fb_secret']) .'" size="35" /></p>'; 
     298      if(isset($wpbookLiteAdminOptions['fb_secret'])) { 
     299        echo htmlentities($wpbookLiteAdminOptions['fb_secret']); 
     300      } 
     301      echo '" size="35" /></p>'; 
    296302      echo '<p>YOUR Facebook Profile ID: <input type="text" name="fb_admin_target" value="'; 
    297       echo preg_replace("#[^0-9]#","",htmlentities($wpbookLiteAdminOptions['fb_admin_target'])) .'" size="15" />'; 
    298       if(!empty($wpbookLiteAdminOptions['fb_admin_target'])) { 
     303      if(isset($wpbookLiteAdminOptions['fb_admin_target'])) { 
     304        echo preg_replace("#[^0-9]#","",htmlentities($wpbookLiteAdminOptions['fb_admin_target'])); 
     305      } 
     306      echo '" size="15" />'; 
     307      if(isset($wpbookLiteAdminOptions['fb_admin_target']) && !empty($wpbookLiteAdminOptions['fb_admin_target'])) { 
    299308        echo ' <a href="http://www.facebook.com/profile.php?id=' . $wpbookLiteAdminOptions['fb_admin_target'] . '" target="_new">visit this profile</a>'; 
    300309      } 
  • wpbook-lite/trunk/README.txt

    r1087148 r1116848  
    33Tags: facebook, platform, application, blog, mirror 
    44Requires at least: 2.9 
    5 Stable tag: 1.6.4 
    6 Tested up to: 4.1 
     5Stable tag: 1.6.5 
     6Tested up to: 4.2 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    5353 
    5454== Changelog == 
     55 
     56= 1.6.5 =  
     57* Better suppression of unset string indices on first install 
    5558 
    5659= 1.6.4 =  
  • wpbook-lite/trunk/wpbook-lite.php

    r1087148 r1116848  
    66Author: John Eckman 
    77Author URI: http://johneckman.com 
    8 Version: 1.6.4 
    9 Stable tag: 1.6.4 
     8Version: 1.6.5 
     9Stable tag: 1.6.5 
    1010 
    1111*/ 
     
    237237                    $wpbook_target_group,$wpbook_disable_sslverify); 
    238238      $flash = "Your settings have been saved. "; 
    239     } elseif (($wpbookLiteAdminOptions['fb_api_key'] != "") && ($wpbookLiteAdminOptions['fb_secret'] != "") && ($wpbookLiteAdminOptions['fb_admin_target'] != "")){ 
     239    } elseif ((isset($wpbookLiteAdminOptions['fb_api_key'])) && ($wpbookLiteAdminOptions['fb_api_key'] != "") && (isset($wpbookLiteAdminOptions['fb_secret'])) && ($wpbookLiteAdminOptions['fb_secret'] != "") && ($wpbookLiteAdminOptions['fb_admin_target'] != "")){ 
    240240      $flash = ""; 
    241241    } elseif (! empty( $_POST ) && ! check_admin_referer( 'update_settings', 'wpbook_lite_admin_nonce')) { 
     
    251251      $wpbookLiteAdminOptions = wpbook_lite_getAdminOptions(); 
    252252      //set the "smart" defaults on install this only works once the page has been refeshed 
    253       if ($wpbookLiteAdminOptions['wpbook_installation'] != 1) {   
     253      if ((isset($wpbookLiteAdminOptions['wpbook_installation'])) && ($wpbookLiteAdminOptions['wpbook_installation'] != 1)) {   
    254254        setAdminOptions(1,null,null,null,null,false, 
    255255                        false,false,false,false,false,7,"facebook@openparenthesis.org", 
     
    286286      echo '<form action="'. $_SERVER["REQUEST_URI"] .'" method="post">';  
    287287      echo '<p>Facebook App ID: <input type="text" name="fb_api_key" value="'; 
    288       echo htmlentities($wpbookLiteAdminOptions['fb_api_key']) .'" size="35" />'; 
    289       if(!empty($wpbookLiteAdminOptions['fb_api_key'])) { 
     288      if(isset($wpbookLiteAdminOptions['fb_api_key'])) { 
     289        echo htmlentities($wpbookLiteAdminOptions['fb_api_key']); 
     290      } 
     291      echo '" size="35" />'; 
     292      if((isset($wpbookLiteAdminOptions['fb_api_key'])) && (!empty($wpbookLiteAdminOptions['fb_api_key']))) { 
    290293        echo ' <a href="http://www.facebook.com/apps/application.php?id=' . $wpbookLiteAdminOptions['fb_api_key'] . '" target="_new"> Visit this app profile</a>'; 
    291294      } 
     
    293296      echo '<p>Facebook App Secret: '; 
    294297      echo '<input type="text" name="fb_secret" value="'; 
    295       echo htmlentities($wpbookLiteAdminOptions['fb_secret']) .'" size="35" /></p>'; 
     298      if(isset($wpbookLiteAdminOptions['fb_secret'])) { 
     299        echo htmlentities($wpbookLiteAdminOptions['fb_secret']); 
     300      } 
     301      echo '" size="35" /></p>'; 
    296302      echo '<p>YOUR Facebook Profile ID: <input type="text" name="fb_admin_target" value="'; 
    297       echo preg_replace("#[^0-9]#","",htmlentities($wpbookLiteAdminOptions['fb_admin_target'])) .'" size="15" />'; 
    298       if(!empty($wpbookLiteAdminOptions['fb_admin_target'])) { 
     303      if(isset($wpbookLiteAdminOptions['fb_admin_target'])) { 
     304        echo preg_replace("#[^0-9]#","",htmlentities($wpbookLiteAdminOptions['fb_admin_target'])); 
     305      } 
     306      echo '" size="15" />'; 
     307      if(isset($wpbookLiteAdminOptions['fb_admin_target']) && !empty($wpbookLiteAdminOptions['fb_admin_target'])) { 
    299308        echo ' <a href="http://www.facebook.com/profile.php?id=' . $wpbookLiteAdminOptions['fb_admin_target'] . '" target="_new">visit this profile</a>'; 
    300309      } 
Note: See TracChangeset for help on using the changeset viewer.