Make WordPress Core


Ignore:
Timestamp:
05/10/2024 06:07:17 PM (9 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/export.php

    r56633 r58129  
    239239            <option value="0"><?php _e( 'All' ); ?></option>
    240240            <?php
    241             $post_stati = get_post_stati( array( 'internal' => false ), 'objects' );
    242             foreach ( $post_stati as $status ) :
     241            $post_statuses = get_post_stati( array( 'internal' => false ), 'objects' );
     242            foreach ( $post_statuses as $status ) :
    243243                ?>
    244244            <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
     
    290290        <select name="page_status" id="page-status">
    291291            <option value="0"><?php _e( 'All' ); ?></option>
    292             <?php foreach ( $post_stati as $status ) : ?>
     292            <?php foreach ( $post_statuses as $status ) : ?>
    293293            <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
    294294            <?php endforeach; ?>
Note: See TracChangeset for help on using the changeset viewer.