Improvements to the nonce AYS from mdawaffe. #2734

git-svn-id: https://develop.svn.wordpress.org/trunk@3783 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-05-18 06:49:22 +00:00
parent ab83e29c5c
commit 855864396f
6 changed files with 22 additions and 17 deletions
+3 -3
View File
@@ -1,6 +1,8 @@
<?php
require_once('admin.php');
$parent_file = 'edit.php';
$submenu_file = 'edit-comments.php';
$wpvarstoreset = array('action');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
@@ -24,8 +26,6 @@ if ( isset( $_POST['deletecomment'] ) )
switch($action) {
case 'editcomment':
$title = __('Edit Comment');
$parent_file = 'edit.php';
$submenu_file = 'edit-comments.php';
$editing = true;
require_once ('admin-header.php');
@@ -202,4 +202,4 @@ default:
include('admin-footer.php');
?>
?>