Changeset 34329
- Timestamp:
- 09/19/2015 05:48:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/export.php
r34328 r34329 44 44 45 45 $sitename = sanitize_key( get_bloginfo( 'name' ) ); 46 if ( ! empty($sitename) ) $sitename .= '.'; 47 $filename = $sitename . 'wordpress.' . date( 'Y-m-d' ) . '.xml'; 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 ); 48 61 49 62 header( 'Content-Description: File Transfer' );
Note: See TracChangeset
for help on using the changeset viewer.