WordPress.org

Plugin Directory

Changeset 583877


Ignore:
Timestamp:
08/10/12 12:55:11 (21 months ago)
Author:
M66B
Message:

1.163 dev fix for defaults when not using the post editor

Location:
add-link-to-facebook
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • add-link-to-facebook/tags/1.162/readme.txt

    r583791 r583877  
    778778* Bugfix: losing selected pages/groups in some cases 
    779779* New feature: add to wall of friends ([Pro version](http://www.faircode.eu/al2fbpro/) only; beta) 
    780 * New feature: option to clear all errors (settings tab Misc) 
     780* New feature: option to clear all errors (plugin settings tab Misc) 
    781781* Improvement: add to page: none 
    782782* Improvement: updated Mozilla CA certificates 
  • add-link-to-facebook/trunk/add-link-to-facebook-class.php

    r583791 r583877  
    12251225                add_post_meta($post_id, c_al2fb_meta_log, date('c') . ' Save post'); 
    12261226 
     1227            // Apply defaults if no form 
     1228            if (!isset($_POST['al2fb_form'])) { 
     1229                update_post_meta($post_id, c_al2fb_meta_exclude, get_user_meta($user_ID, c_al2fb_meta_exclude_default, true)); 
     1230                update_post_meta($post_id, c_al2fb_meta_exclude_video, get_user_meta($user_ID, c_al2fb_meta_exclude_default_video, true)); 
     1231            } 
     1232 
    12271233            // Security checks 
    12281234            $nonce = (isset($_POST[c_al2fb_nonce_form]) ? $_POST[c_al2fb_nonce_form] : null); 
     
    12471253                self::Is_login_authorized($user_ID, false)) 
    12481254                update_user_meta($user_ID, c_al2fb_meta_facebook_page, $_POST[c_al2fb_meta_facebook_page]); 
    1249  
    1250             // Apply defaults if no form 
    1251             if (!isset($_POST['al2fb_form'])) { 
    1252                 update_post_meta($post_id, c_al2fb_meta_exclude, get_user_meta($user_ID, c_al2fb_meta_exclude_default, true)); 
    1253                 update_post_meta($post_id, c_al2fb_meta_exclude_video, get_user_meta($user_ID, c_al2fb_meta_exclude_default_video, true)); 
    1254             } 
    12551255 
    12561256            // Process exclude indication 
  • add-link-to-facebook/trunk/readme.txt

    r583791 r583877  
    778778* Bugfix: losing selected pages/groups in some cases 
    779779* New feature: add to wall of friends ([Pro version](http://www.faircode.eu/al2fbpro/) only; beta) 
    780 * New feature: option to clear all errors (settings tab Misc) 
     780* New feature: option to clear all errors (plugin settings tab Misc) 
    781781* Improvement: add to page: none 
    782782* Improvement: updated Mozilla CA certificates 
Note: See TracChangeset for help on using the changeset viewer.