Plugin Directory

Changeset 564567


Ignore:
Timestamp:
06/27/2012 12:24:24 PM (14 years ago)
Author:
lpointet
Message:

Avoid a PHP Notice on admin POST requests

Location:
wordpress-gps/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wordpress-gps/trunk/gb_gps.php

    r563975 r564567  
    44Plugin URI: http://www.globalis-ms.com
    55Description: This plugin Provide an admin screen to WordPress users in which they will choose one scenario to play. That scenario will help them through the WordPress administration thanks to WP-Pointers API
    6 Version: 1.0.6
     6Version: 1.0.7
    77Author: Lionel POINTET, GLOBALIS media systems
    88Author URI: http://www.globalis-ms.com
  • wordpress-gps/trunk/include/gb_gps.php

    r563975 r564567  
    134134     */
    135135    protected function handlePost() {
    136         if(!empty($_POST) && wp_verify_nonce($_POST['nonce'], 'gb_gps_nonce')) {
     136        if(check_admin_referer('gb_gps_nonce', 'nonce')) {
    137137            if(isset($_POST['scenario'])) {
    138138                $this->set_active_scenario($_POST['scenario']);
  • wordpress-gps/trunk/readme.txt

    r563975 r564567  
    44Requires at least: 3.3.0
    55Tested up to: 3.4
    6 Stable tag: 1.0.6
     6Stable tag: 1.0.7
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4646
    4747== Changelog ==
     48
     49= 1.0.7 =
     50* Avoid a PHP Notice on admin POST requests
    4851
    4952= 1.0.6 =
Note: See TracChangeset for help on using the changeset viewer.