Make WordPress Core


Ignore:
Timestamp:
08/20/2010 11:43:32 AM (14 years ago)
Author:
scribu
Message:

Fix the comment type dropdown. Fixes #14637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r15512 r15513  
    720720    if ( ! $comment ) die('1');
    721721
    722     $modes = array( 'single', 'detail', 'dashboard' );
    723     $mode = isset($_POST['mode']) && in_array( $_POST['mode'], $modes ) ? $_POST['mode'] : 'detail';
    724722    $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1';
    725723    $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
     
    760758    edit_comment();
    761759
    762     $mode = ( isset($_POST['mode']) && 'single' == $_POST['mode'] ) ? 'single' : 'detail';
    763760    $position = ( isset($_POST['position']) && (int) $_POST['position']) ? (int) $_POST['position'] : '-1';
    764761    $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
Note: See TracChangeset for help on using the changeset viewer.