Export issues on multisite configurations
|Reported by:||yoavf||Owned by:||duck_|
Description (last modified by yoavf)
In 3.0, some changes were introduced to the export functions that may cause the export to fail some multi-sites configuration.
For example, 
This new query won't work on installations where the posts table and the users tables aren't on the same server.
$where .= $wpdb->prepare( "AND ID IN (SELECT object_id FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d) ", $term_id );
This is flawed because it assumes the term_relationship object_id is the same as the term_id which might not always be the case (ie global tags configuration).
The attached patch fixes that by using get_objects_in_term() instead. The authors selection drop down code is reverted to pre-3.0 code.
Change History (5)
- Milestone changed from Awaiting Triage to 3.1
- Owner set to duck_
- Status changed from new to assigned