diff options
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> |