Changeset 1137674
- Timestamp:
- 04/18/2015 01:10:47 AM (11 years ago)
- File:
-
- 1 edited
-
shopp-admin-extras/trunk/shopp-admin-extras.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shopp-admin-extras/trunk/shopp-admin-extras.php
r1137669 r1137674 4 4 Plugin URI: 5 5 Description: Adds navigation links on the Orders page and allows you to edit the order status inside the Order page. 6 Version: 1.0 6 Version: 1.0.1 7 7 Author: Chris Runnells 8 8 Author URI: http://chrisrunnells.com … … 56 56 /* Prints the box content */ 57 57 function order_status_box() { 58 59 // Use nonce for verification60 wp_nonce_field( plugin_basename( __FILE__ ), 'post_status_noncename' );61 58 62 59 // snag the order status from the order object … … 65 62 $statusLabels = shopp_setting('order_status'); 66 63 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' ); 67 67 // create a select menu of Order Status' 68 68 echo '<select name="newstatus" id="newstatus">'; … … 70 70 echo '</select> '; 71 71 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>'; 73 73 74 74 } … … 79 79 80 80 // 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__ ) ) ) 82 82 return; 83 83
Note: See TracChangeset
for help on using the changeset viewer.