From fc8c624a61758aedd545a9ccbcc75ab6055510c6 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 19 Sep 2015 17:49:24 +0000 Subject: [PATCH] Reinstate [34327]. minus the unit test deletion. Built from https://develop.svn.wordpress.org/trunk@34329 git-svn-id: http://core.svn.wordpress.org/trunk@34293 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 17 +++++++++++++++-- wp-includes/version.php | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 4fcf253306..3acd7fdc3e 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -43,8 +43,21 @@ function export_wp( $args = array() ) { do_action( 'export_wp', $args ); $sitename = sanitize_key( get_bloginfo( 'name' ) ); - if ( ! empty($sitename) ) $sitename .= '.'; - $filename = $sitename . 'wordpress.' . date( 'Y-m-d' ) . '.xml'; + if ( ! empty( $sitename ) ) { + $sitename .= '.'; + } + $date = date( 'Y-m-d' ); + $wp_filename = $sitename . 'wordpress.' . $date . '.xml'; + /** + * Filter the export filename. + * + * @since 4.4.0 + * + * @param string $wp_filename The name of the file for download. + * @param string $sitename The site name. + * @param string $date Today's date, formatted. + */ + $filename = apply_filters( 'export_wp_filename', $wp_filename, $sitename, $date ); header( 'Content-Description: File Transfer' ); header( 'Content-Disposition: attachment; filename=' . $filename ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ae77b7c8ce..b47988b341 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34328'; +$wp_version = '4.4-alpha-34329'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.