diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:51:18 +0000 |
commit | 0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch) | |
tree | e139a90049b158d4eed892d1662ee7f5c358fa31 /wp-admin/export.php | |
parent | Adding upstream version 6.5.5+dfsg1. (diff) | |
download | wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.tar.xz wordpress-0e41b5d52fdc6af6442816b5f465c9db9f84e126.zip |
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-admin/export.php')
-rw-r--r-- | wp-admin/export.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wp-admin/export.php b/wp-admin/export.php index 7f1dd43..945eb59 100644 --- a/wp-admin/export.php +++ b/wp-admin/export.php @@ -129,11 +129,11 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; /** * Creates the date options fields for exporting a given post type. * + * @since 3.1.0 + * * @global wpdb $wpdb WordPress database abstraction object. * @global WP_Locale $wp_locale WordPress date and time locale object. * - * @since 3.1.0 - * * @param string $post_type The post type. Default 'post'. */ function export_date_options( $post_type = 'post' ) { @@ -238,8 +238,8 @@ function export_date_options( $post_type = 'post' ) { <select name="post_status" id="post-status"> <option value="0"><?php _e( 'All' ); ?></option> <?php - $post_stati = get_post_stati( array( 'internal' => false ), 'objects' ); - foreach ( $post_stati as $status ) : + $post_statuses = get_post_stati( array( 'internal' => false ), 'objects' ); + foreach ( $post_statuses as $status ) : ?> <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> <?php endforeach; ?> @@ -289,7 +289,7 @@ function export_date_options( $post_type = 'post' ) { <label for="page-status" class="label-responsive"><?php _e( 'Status:' ); ?></label> <select name="page_status" id="page-status"> <option value="0"><?php _e( 'All' ); ?></option> - <?php foreach ( $post_stati as $status ) : ?> + <?php foreach ( $post_statuses as $status ) : ?> <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option> <?php endforeach; ?> </select> |