WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#28745 closed enhancement (fixed)

WXR Export should allow for plugins (or core) to filter which comment meta are exported

Reported by: cfinke Owned by: nacin
Milestone: 4.0 Priority: normal
Severity: normal Version: 4.0
Component: Export Keywords:
Focuses: Cc:

Description

There exists a filter (https://core.trac.wordpress.org/ticket/18280#comment:5) to allow core/plugins to choose to skip certain postmeta in exports. It would be handy to have the same functionality for commentmeta.

Example implementation: Akismet is already set up to use this filter (as implemented in WordPress.com's exporter, which is discussed in #22435) to exclude comment meta values from exports that won't be of any utility after an import. (https://plugins.trac.wordpress.org/changeset/943192)

Patch attached.

Attachments (1)

wxr_export_skip_commentmeta.patch (1.2 KB) - added by cfinke 4 years ago.

Download all attachments as: .zip

Change History (3)

#1 @nacin
4 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 29573:

Export: Add wxr_export_skip_commentmeta filter to match the _postmeta filter.

props cfinke.
fixes #28745.

#2 @nacin
4 years ago

  • Milestone changed from Awaiting Review to 4.0

Thanks for the patch, cfinke.

It was more work to punt this to 4.1 than it was to commit it.

Note: See TracTickets for help on using tickets.