wp-cli / export-command

Exports WordPress content to a WXR file.
MIT License
12 stars 27 forks source link

Export is missing `cat_name`, `tag_name` & `term_name` #85

Closed nonamich closed 3 years ago

nonamich commented 3 years ago

Bug Report

Describe the current, buggy behavior I really like to automate my content export with "wp export", it's very easy and fast, but. Аfter upgrading to WP 5.8 in the file content.xml missing data "cat_name, tag_name, term_name" because of this when importing errors.

https://i.imgur.com/9XavHps.png https://i.imgur.com/LPiWbtc.png

thanks.

Let us know what environment you are running this on

OS: Linux 3.12.18-clouder0 #6 SMP PREEMPT Mon Apr 12 16:04:39 EEST 2021 x86_64
Shell: /bin/bash
PHP binary: /usr/local/php74/bin/php-cli
PHP version: 7.4.21
php.ini used: /usr/local/php74/lib/php.ini
MySQL binary: /bin/mysql
MySQL version: mysql  Ver 15.1 Distrib 10.3.27-MariaDB, for Linux (x86_64) using readline 5.1
SQL modes: 
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/customer/www/yaffotheme.com/public_html
WP-CLI packages dir: 
WP-CLI global config: 
WP-CLI project config: 
WP-CLI version: 2.5.0
nonamich commented 3 years ago

I found a temporary solution wp eval "require_once ABSPATH . 'wp-admin/includes/export.php'; export_wp( [ 'content' => 'all' ] );"

schlessera commented 3 years ago

It looks like this is unrelated to WP 5.8, but is rather a regression that was introduced via #84 .