Make WordPress Core

Ticket #58372: export.diff

File export.diff, 697 bytes (added by umeshmcakadi, 12 months ago)
  • src/wp-admin/export.php"

    diff --git "a/src/wp-admin/export.php" "b/src/wp-admin/export.php"
    index 6e4c335190..7c59c9e6c0 100644
    "a "b function export_date_options( $post_type = 'post' ) { 
    141141
    142142        $months = $wpdb->get_results(
    143143                $wpdb->prepare(
    144                         "
    145                 SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
    146                 FROM $wpdb->posts
    147                 WHERE post_type = %s AND post_status != 'auto-draft'
    148                 ORDER BY post_date DESC
    149                         ",
     144                        "SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
     145                        FROM $wpdb->posts
     146                        WHERE post_type = %s AND post_status != 'auto-draft'
     147                        ORDER BY post_date DESC",
    150148                        $post_type
    151149                )
    152150        );