Changeset 15513 for trunk/wp-admin/admin-ajax.php
- Timestamp:
- 08/20/2010 11:43:32 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15512 r15513 720 720 if ( ! $comment ) die('1'); 721 721 722 $modes = array( 'single', 'detail', 'dashboard' );723 $mode = isset($_POST['mode']) && in_array( $_POST['mode'], $modes ) ? $_POST['mode'] : 'detail';724 722 $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; 725 723 $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; … … 760 758 edit_comment(); 761 759 762 $mode = ( isset($_POST['mode']) && 'single' == $_POST['mode'] ) ? 'single' : 'detail';763 760 $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1'; 764 761 $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
Note: See TracChangeset
for help on using the changeset viewer.