You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Output term meta XML tags for a given term object.
*
* @since 4.6.0
*
* @param WP_Term $term Term object.
*/
function wxr_term_meta( $term ) {
global $wpdb;
$termmeta = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->termmeta WHERE term_id = %d", $term->term_id ) );
foreach ( $termmeta as $meta ) {
/**
* Filters whether to selectively skip term meta used for WXR exports.
*
* Returning a truthy value to the filter will skip the current meta
* object from being exported.
*
* @since 4.6.0
*
* @param bool $skip Whether to skip the current piece of term meta. Default false.
* @param string $meta_key Current meta key.
* @param object $meta Current meta object.
*/
if ( ! apply_filters( 'wxr_export_skip_termmeta', false, $meta->meta_key, $meta ) ) {
printf( "\t\t<wp:termmeta>\n\t\t\t<wp:meta_key>%s</wp:meta_key>\n\t\t\t<wp:meta_value>%s</wp:meta_value>\n\t\t</wp:termmeta>\n", wxr_cdata( $meta->meta_key ), wxr_cdata( $meta->meta_value ) );
}
}
}
I have done the test manually with success.
I have also tested successfully the import of the exported XML file.
The command composer behat doesn't work on my computer. It always returns this error ERROR 1045 (28000): Access denied for user 'wp_cli_test'@'localhost' (using password: YES)
So I could not run the automatic tests.
Activity
LittleSnake42 commentedon Jun 5, 2019
Up please ;)
I'm gonna try to quick fix it for now.
WP does it in includes/export.php on line 312
Here's the code :
LittleSnake42 commentedon Jun 5, 2019
Edit.
I added the following function (same as comment_meta()) :
And it is called here :
->oxymel($this->term_meta($term));
Kerfred commentedon Jun 13, 2024
I take this issue.
Kerfred commentedon Jun 13, 2024
I have done the test manually with success.
I have also tested successfully the import of the exported XML file.
The command
composer behatdoesn't work on my computer. It always returns this errorERROR 1045 (28000): Access denied for user 'wp_cli_test'@'localhost' (using password: YES)So I could not run the automatic tests.
Kerfred commentedon Jun 5, 2025
composer behatworks well now on my computer.I have added a scenario and 2 tests.
All the tests are successful.