WordPress.org

Make WordPress Core

Changeset 34328


Ignore:
Timestamp:
09/19/2015 05:45:46 PM (5 years ago)
Author:
wonderboymusic
Message:

Revert [34327] to fix the accidental deletion of some unit tests.

Location:
trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/export.php

    r34327 r34328  
    4444
    4545    $sitename = sanitize_key( get_bloginfo( 'name' ) );
    46     if ( ! empty( $sitename ) ) {
    47         $sitename .= '.';
    48     }
    49     $date = date( 'Y-m-d' );
    50     $wp_filename = $sitename . 'wordpress.' . $date . '.xml';
    51     /**
    52      * Filter the export filename.
    53      *
    54      * @since 4.4.0
    55      *
    56      * @param string $wp_filename The name of the file for download.
    57      * @param string $sitename    The site name.
    58      * @param string $date        Today's date, formatted.
    59      */
    60     $filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date );
     46    if ( ! empty($sitename) ) $sitename .= '.';
     47    $filename = $sitename . 'wordpress.' . date( 'Y-m-d' ) . '.xml';
    6148
    6249    header( 'Content-Description: File Transfer' );
Note: See TracChangeset for help on using the changeset viewer.