get_comment_statuses

The timeline below displays how wordpress function get_comment_statuses has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Retrieves all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @since 2.7.0
 *
 * @return string[] List of comment status labels keyed by status.
 */
function get_comment_statuses()
{
    $status = array('hold' => __('Unapproved'), 'approve' => _x('Approved', 'comment status'), 'spam' => _x('Spam', 'comment status'), 'trash' => _x('Trash', 'comment status'));
    return $status;
}

WordPress Version: 5.4

/**
 * Retrieve all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @since 2.7.0
 *
 * @return string[] List of comment status labels keyed by status.
 */
function get_comment_statuses()
{
    $status = array('hold' => __('Unapproved'), 'approve' => _x('Approved', 'comment status'), 'spam' => _x('Spam', 'comment status'), 'trash' => _x('Trash', 'comment status'));
    return $status;
}

WordPress Version: 4.5

/**
 * Retrieve all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @since 2.7.0
 *
 * @return array List of comment statuses.
 */
function get_comment_statuses()
{
    $status = array('hold' => __('Unapproved'), 'approve' => _x('Approved', 'comment status'), 'spam' => _x('Spam', 'comment status'), 'trash' => _x('Trash', 'comment status'));
    return $status;
}

WordPress Version: 4.4

/**
 * Retrieve all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @since 2.7.0
 *
 * @return array List of comment statuses.
 */
function get_comment_statuses()
{
    $status = array(
        'hold' => __('Unapproved'),
        /* translators: comment status  */
        'approve' => _x('Approved', 'adjective'),
        /* translators: comment status */
        'spam' => _x('Spam', 'adjective'),
        /* translators: comment status */
        'trash' => _x('Trash', 'adjective'),
    );
    return $status;
}

WordPress Version: 3.9

/**
 * Retrieve all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @since 2.7.0
 *
 * @return array List of comment statuses.
 */
function get_comment_statuses()
{
    $status = array(
        'hold' => __('Unapproved'),
        /* translators: comment status  */
        'approve' => _x('Approved', 'adjective'),
        /* translators: comment status */
        'spam' => _x('Spam', 'adjective'),
    );
    return $status;
}

WordPress Version: 3.7

/**
 * Retrieve all of the WordPress supported comment statuses.
 *
 * Comments have a limited set of valid status values, this provides the comment
 * status values and descriptions.
 *
 * @package WordPress
 * @subpackage Post
 * @since 2.7.0
 *
 * @return array List of comment statuses.
 */
function get_comment_statuses()
{
    $status = array(
        'hold' => __('Unapproved'),
        /* translators: comment status  */
        'approve' => _x('Approved', 'adjective'),
        /* translators: comment status */
        'spam' => _x('Spam', 'adjective'),
    );
    return $status;
}