Changeset 2666 for branches/1.5/wp-admin
- Timestamp:
- 06/28/05 05:29:25 (4 years ago)
- Files:
-
- branches/1.5/wp-admin/post.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.5/wp-admin/post.php
r2604 r2666 274 274 $blog_ID = 1; 275 275 } 276 $post_ID = $_POST['post_ID'];276 $post_ID = (int) $_POST['post_ID']; 277 277 278 278 if (!user_can_edit_post($user_ID, $post_ID, $blog_ID)) … … 309 309 $post_parent = 0; 310 310 if (isset($_POST['parent_id'])) { 311 $post_parent = $_POST['parent_id'];311 $post_parent = (int) $_POST['parent_id']; 312 312 } 313 313 … … 479 479 get_currentuserinfo(); 480 480 481 $comment = $_GET['comment'];481 $comment = (int) $_GET['comment']; 482 482 $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)')); 483 483 … … 500 500 require_once('./admin-header.php'); 501 501 502 $comment = $_GET['comment'];502 $comment = (int) $_GET['comment']; 503 503 $p = (int) $_GET['p']; 504 504 $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'edit.php')); … … 535 535 check_admin_referer(); 536 536 537 $comment = $_GET['comment'];538 $p = $_GET['p'];537 $comment = (int) $_GET['comment']; 538 $p = (int) $_GET['p']; 539 539 if (isset($_GET['noredir'])) { 540 540 $noredir = true; … … 567 567 check_admin_referer(); 568 568 569 $comment = $_GET['comment'];570 $p = $_GET['p'];569 $comment = (int) $_GET['comment']; 570 $p = (int) $_GET['p']; 571 571 if (isset($_GET['noredir'])) { 572 572 $noredir = true; … … 613 613 case 'approvecomment': 614 614 615 $comment = $_GET['comment'];616 $p = $_GET['p'];615 $comment = (int) $_GET['comment']; 616 $p = (int) $_GET['p']; 617 617 if (isset($_GET['noredir'])) { 618 618 $noredir = true; … … 642 642 case 'editedcomment': 643 643 644 $comment_ID = $_POST['comment_ID'];645 $comment_post_ID = $_POST['comment_post_ID'];644 $comment_ID = (int) $_POST['comment_ID']; 645 $comment_post_ID = (int) $_POST['comment_post_ID']; 646 646 $newcomment_author = $_POST['newcomment_author']; 647 647 $newcomment_author_email = $_POST['newcomment_author_email'];
