Support » Plugin: WordPress Exporter » Get Supports

Viewing 1 replies (of 1 total)
  • please find below a small patch for the plugin to tamper the filename of the download. If you like to use it …

    Index: wp-content/plugins/wp-exporter/wxr.php
    ===================================================================
    — wp-content/plugins/wp-exporter/wxr.php (revision 1942)
    +++ wp-content/plugins/wp-exporter/wxr.php (working copy)
    @@ -43,6 +43,8 @@
    if ( ! empty($sitename) ) $sitename .= ‘.’;
    $filename = $sitename . ‘wordpress.’ . date( ‘Y-m-d’ ) . ‘.xml’;

    + $filename = apply_filters(‘wxr_download_filename’, $filename, $args);
    +
    header( ‘Content-Description: File Transfer’ );
    header( ‘Content-Disposition: attachment; filename=’ . $filename );
    header( ‘Content-Type: text/xml; charset=’ . get_option( ‘blog_charset’ ), true );

Viewing 1 replies (of 1 total)
  • The topic ‘Get Supports’ is closed to new replies.