Plugin Directory

Changeset 1137674


Ignore:
Timestamp:
04/18/2015 01:10:47 AM (11 years ago)
Author:
crunnells
Message:

Fixed first bug!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shopp-admin-extras/trunk/shopp-admin-extras.php

    r1137669 r1137674  
    44Plugin URI:
    55Description: Adds navigation links on the Orders page and allows you to edit the order status inside the Order page.
    6 Version: 1.0
     6Version: 1.0.1
    77Author: Chris Runnells
    88Author URI: http://chrisrunnells.com
     
    5656    /* Prints the box content */
    5757    function order_status_box() {
    58    
    59         // Use nonce for verification
    60         wp_nonce_field( plugin_basename( __FILE__ ), 'post_status_noncename' );
    6158
    6259        // snag the order status from the order object
     
    6562        $statusLabels = shopp_setting('order_status');
    6663
     64        echo '<form method="post" action="' . $_SERVER['PHP_SELF'] . '?id=' . $_GET['id'] . '&page=' . $_GET['page'] . '">';
     65        // Use nonce for verification
     66        wp_nonce_field( plugin_basename( __FILE__ ), 'order_status_noncename' );
    6767        // create a select menu of Order Status'
    6868        echo '<select name="newstatus" id="newstatus">';
     
    7070        echo '</select> ';
    7171
    72         echo '<button id="update-status-button" class="button-secondary" value="update" type="submit">Update</button>';
     72        echo '<button id="update-status-button" class="button-secondary" value="update" type="submit">Update</button></form>';
    7373
    7474    }
     
    7979
    8080        // Check if the user intended to change this value.
    81         if ( ! isset( $_POST['post_status_noncename'] ) || ! wp_verify_nonce( $_POST['post_status_noncename'], plugin_basename( __FILE__ ) ) )
     81        if ( ! isset( $_POST['order_status_noncename'] ) || ! wp_verify_nonce( $_POST['order_status_noncename'], plugin_basename( __FILE__ ) ) )
    8282            return;
    8383
Note: See TracChangeset for help on using the changeset viewer.