[wp-trac] [WordPress Trac] #12871: Comment meta lost on Export/Import

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 22 11:03:35 UTC 2011


#12871: Comment meta lost on Export/Import
-----------------------------------+-----------------------
 Reporter:  Otto42                 |       Owner:  duck_
     Type:  enhancement            |      Status:  assigned
 Priority:  normal                 |   Milestone:  3.2
Component:  Export                 |     Version:  3.0
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |
-----------------------------------+-----------------------
Changes (by duck_):

 * milestone:  Future Release => 3.2


Comment:

 Attached slightly reworked patches. Mainly to allow re-use of
 <wp:meta_(key|value)> tags instead of introducing new, redundant tags for
 the same purpose. If it weren't for back compat I would go with <wp:meta>
 for both postmeta and commentmeta too.

 Removed some if statements after queries for export since get_results()
 will always return an array which is fine for the foreach.

 Also removed the filter and action for insertion in the importer. Can be
 reintroduced if there is a use, but don't see a point in just adding them
 because postmeta has them. The filter to allow disabling certain keys
 might make more sense, but the action is unnecessary (see
 `added_{$meta_type}_meta`).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12871#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list