WordPress.org

Plugin Directory

Changeset 626594


Ignore:
Timestamp:
11/18/12 10:33:29 (17 months ago)
Author:
M66B
Message:

1.169 dev updated nonces

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

Legend:

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

    r626388 r626594  
    784784 
    785785= Development version = 
    786 * Improvement: display thumbnails in the post meta box 
     786* Improvement: thumbnails in the post meta box 
    787787 
    788788Follow these steps to install the development version: 
  • add-link-to-facebook/trunk/add-link-to-facebook-admin.php

    r615225 r626594  
    228228    <form method="post" action="<?php echo $config_url; ?>"> 
    229229    <input type="hidden" name="al2fb_action" value="config"> 
    230     <?php wp_nonce_field(c_al2fb_nonce_form); ?> 
     230    <?php wp_nonce_field(c_al2fb_nonce_action, c_al2fb_nonce_name); ?> 
    231231 
    232232    <div id="al2fb_config"> 
     
    16611661        <form method="post" action=""> 
    16621662        <input type="hidden" name="al2fb_action" value="mail"> 
    1663         <?php wp_nonce_field(c_al2fb_nonce_form); ?> 
     1663        <?php wp_nonce_field(c_al2fb_nonce_action, c_al2fb_nonce_name); ?> 
    16641664 
    16651665        <table class="form-table"> 
  • add-link-to-facebook/trunk/add-link-to-facebook-class.php

    r626388 r626594  
    398398        function Action_config() { 
    399399            // Security check 
    400             check_admin_referer(c_al2fb_nonce_form); 
     400            check_admin_referer(c_al2fb_nonce_action, c_al2fb_nonce_name); 
    401401 
    402402            // Get current user 
     
    662662        // Send debug info 
    663663        function Action_mail() { 
    664             // Check security 
    665             check_admin_referer(c_al2fb_nonce_form); 
     664            // Security check 
     665            check_admin_referer(c_al2fb_nonce_action, c_al2fb_nonce_name); 
     666 
    666667            require_once('add-link-to-facebook-debug.php'); 
    667668 
     
    892893            <input type="hidden" id="al2fb_form" name="al2fb_form" value="true"> 
    893894<?php 
    894             wp_nonce_field(plugin_basename(__FILE__), c_al2fb_nonce_form); 
     895            wp_nonce_field(c_al2fb_nonce_action, c_al2fb_nonce_name); 
    895896 
    896897            if (get_option(c_al2fb_option_login_add_links)) 
     
    11121113 
    11131114                // Security 
    1114                 wp_nonce_field(plugin_basename(__FILE__), c_al2fb_nonce_form); 
     1115                wp_nonce_field(c_al2fb_nonce_action, c_al2fb_nonce_name); 
    11151116 
    11161117                if ($this->debug) { 
     
    12341235 
    12351236            // Security checks 
    1236             $nonce = (isset($_POST[c_al2fb_nonce_form]) ? $_POST[c_al2fb_nonce_form] : null); 
    1237             if (!wp_verify_nonce($nonce, plugin_basename(__FILE__))) 
    1238                 return $post_id; 
     1237            check_admin_referer(c_al2fb_nonce_action, c_al2fb_nonce_name); 
     1238            //$nonce = (isset($_POST[c_al2fb_nonce_name]) ? $_POST[c_al2fb_nonce_name] : null); 
     1239            //if (!wp_verify_nonce($nonce, c_al2fb_nonce_action)) 
     1240            //  return $post_id; 
    12391241            if (!current_user_can('edit_post', $post_id)) 
    12401242                return $post_id; 
  • add-link-to-facebook/trunk/add-link-to-facebook-const.php

    r615225 r626594  
    33// Define constants 
    44define('c_al2fb_text_domain', 'add-link-to-facebook'); 
    5 define('c_al2fb_nonce_form', 'al2fb-nonce-form'); 
     5define('c_al2fb_nonce_action', 'wp-al2fb-action'); 
     6define('c_al2fb_nonce_name', 'wp-al2fb-nonce'); 
    67 
    78// Global options 
  • add-link-to-facebook/trunk/readme.txt

    r626388 r626594  
    784784 
    785785= Development version = 
    786 * Improvement: display thumbnails in the post meta box 
     786* Improvement: thumbnails in the post meta box 
    787787 
    788788Follow these steps to install the development version: 
Note: See TracChangeset for help on using the changeset viewer.