Make WordPress Core


Ignore:
Timestamp:
05/10/2024 06:07:17 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Posts, Post Types: Use a consistent plural form of “status” in variable names.

Follow-up to [5575], [6796], [6993], [7638], [12162], [12719], [15578], [16652], [31046], [34515], [49472].

Props Presskopp, sabernhardt, manfcarlo, SergeyBiryukov.
Fixes #58134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r57644 r58129  
    238238        $num_comments = ( $post_id ) ? wp_count_comments( $post_id ) : wp_count_comments();
    239239
    240         $stati = array(
     240        $statuses = array(
    241241            /* translators: %s: Number of comments. */
    242242            'all'       => _nx_noop(
     
    283283
    284284        if ( ! EMPTY_TRASH_DAYS ) {
    285             unset( $stati['trash'] );
     285            unset( $statuses['trash'] );
    286286        }
    287287
     
    292292        }
    293293
    294         foreach ( $stati as $status => $label ) {
     294        foreach ( $statuses as $status => $label ) {
    295295            if ( 'mine' === $status ) {
    296296                $current_user_id    = get_current_user_id();
Note: See TracChangeset for help on using the changeset viewer.