diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-admin/export.php --- a/wp/wp-admin/export.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-admin/export.php Fri Sep 05 18:40:08 2025 +0200 @@ -56,8 +56,8 @@ get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . - '

' . __( 'Documentation on Export' ) . '

' . - '

' . __( 'Support' ) . '

' + '

' . __( 'Documentation on Export' ) . '

' . + '

' . __( 'Support forums' ) . '

' ); // If the 'download' URL parameter is set, a WXR export file is baked and returned. @@ -127,13 +127,13 @@ require_once ABSPATH . 'wp-admin/admin-header.php'; /** - * Create the date options fields for exporting a given post type. + * 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' ) { @@ -141,12 +141,10 @@ $months = $wpdb->get_results( $wpdb->prepare( - " - SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month - FROM $wpdb->posts - WHERE post_type = %s AND post_status != 'auto-draft' - ORDER BY post_date DESC - ", + "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month + FROM $wpdb->posts + WHERE post_type = %s AND post_status != 'auto-draft' + ORDER BY post_date DESC", $post_type ) ); @@ -162,7 +160,12 @@ } $month = zeroise( $date->month, 2 ); - echo ''; + + printf( + '', + esc_attr( $date->year . '-' . $month ), + $wp_locale->get_month( $month ) . ' ' . $date->year + ); } } ?> @@ -177,7 +180,12 @@

- + + +

@@ -207,7 +215,12 @@
  • - + + + false ), 'objects' ); - foreach ( $post_stati as $status ) : + $post_statuses = get_post_stati( array( 'internal' => false ), 'objects' ); + foreach ( $post_statuses as $status ) : ?> @@ -254,7 +267,12 @@
  • - + + + - + @@ -294,7 +312,12 @@
    • - + + +