Make WordPress Core

Opened 12 years ago

Closed 11 years ago

#29500 closed feature request (fixed)

Add filter for the WXR export filename

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

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 12 years ago.
Adding a export_filename filter. And a unit test.
29500.diff (1.9 KB ) - added by alfreddatakillen 12 years ago.
Adding a export_filename filter. And a unit test.
29500.1.diff (1.8 KB ) - added by MikeHansenMe 12 years ago.
29500.2.diff (1.8 KB ) - added by MikeHansenMe 12 years ago.
Same patch fixed some spaces

Download all attachments as: .zip

Change History (8)

@alfreddatakillen
12 years ago

Adding a export_filename filter. And a unit test.

#1 @alfreddatakillen
12 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
12 years ago

Adding a export_filename filter. And a unit test.

@MikeHansenMe
12 years ago

Same patch fixed some spaces

#2 @MikeHansenMe
12 years ago

  • Keywords has-patch added

#3 @wonderboymusic
11 years ago

  • Milestone Awaiting Review4.4
  • Owner set to wonderboymusic
  • Status newassigned

#4 @wonderboymusic
11 years ago

  • Resolutionfixed
  • Status assignedclosed

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.