Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#29500 closed feature request (fixed)

Add filter for the WXR export filename

Reported by: alfreddatakillen's profile alfreddatakillen Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.0
Component: Export Keywords: has-patch
Focuses: Cc:

Description

Hi! I am working in a team that is using Git for storing WXR export files from lots of WordPress multisite blogs. We want our own filename naming conventions for those WXR export files (blog ID number, and not having a date in the filename, since Git is doing versioning already). However, there are just too many human errors when manually renaming filenames. So, to facilitate such teamwork, we believe there should be a filter for the export file filename.

Attachments (4)

exportnamefilter.diff (1.9 KB) - added by alfreddatakillen 10 years ago.
Adding a export_filename filter. And a unit test.
29500.diff (1.9 KB) - added by alfreddatakillen 10 years ago.
Adding a export_filename filter. And a unit test.
29500.1.diff (1.8 KB) - added by MikeHansenMe 10 years ago.
29500.2.diff (1.8 KB) - added by MikeHansenMe 10 years ago.
Same patch fixed some spaces

Download all attachments as: .zip

Change History (8)

@alfreddatakillen
10 years ago

Adding a export_filename filter. And a unit test.

#1 @alfreddatakillen
10 years ago

Uhmm.. I'm a newcomer here. I thought the diff file would get the ticket ID in the filename automagically. Uploading the same file again, with ticket ID filename.

@alfreddatakillen
10 years ago

Adding a export_filename filter. And a unit test.

@MikeHansenMe
10 years ago

Same patch fixed some spaces

#2 @MikeHansenMe
10 years ago

  • Keywords has-patch added

#3 @wonderboymusic
9 years ago

  • Milestone changed from Awaiting Review to 4.4
  • Owner set to wonderboymusic
  • Status changed from new to assigned

#4 @wonderboymusic
9 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 34327:

Export: Add a filer, 'export_wp_filename' to change the filename of the file to download when exporting.

Props MikeHansenMe, wonderboymusic.
Fixes #29500.

Note: See TracTickets for help on using tickets.