WordPress.org

Make WordPress Core

Changeset 15513


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

Fix the comment type dropdown. Fixes #14637

Location:
trunk/wp-admin
Files:
2 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;
  • trunk/wp-admin/includes/default-list-tables.php

    r15512 r15513  
    19851985            'number' => $number,
    19861986            'post_id' => $post_id,
    1987             'plural' => $comment_type,
     1987            'type' => $comment_type,
    19881988            'orderby' => @$_REQUEST['orderby'],
    19891989            'order' => @$_REQUEST['order'],
     
    20442044?>
    20452045            <select name="comment_type">
    2046                 <option value="all"><?php _e( 'Show all comment types' ); ?></option>
     2046                <option value=""><?php _e( 'Show all comment types' ); ?></option>
    20472047<?php
    20482048                $comment_types = apply_filters( 'admin_comment_types_dropdown', array(
Note: See TracChangeset for help on using the changeset viewer.