[wp-trac] [WordPress Trac] #22435: Export API
WordPress Trac
noreply at wordpress.org
Wed Dec 17 12:28:04 UTC 2014
#22435: Export API
------------------------------------+-----------------------------
Reporter: nbachiyski | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Export | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+-----------------------------
Comment (by rodrigosprimo):
When using WP-CLI's export command with --category parameter I was getting
the PHP notice below:
PHP Notice: Trying to get property of non-object in php/export/class-wp-
export-wxr-formatter.php on line 117
This resulted in several empty <wp:category> tags in the generated file.
The attached patch fixes this problem by making sure that
WP_Export_Query::categories() always return an array as expected by
WP_Export_WXR_Formatter::categories().
Note that line 117 of class-wp-export-wxr-formatter.php in WP-CLI is
equivalent to line 135 of the same file in this ticket.
See the link below for the related WP-CLI pull request:
https://github.com/wp-cli/wp-cli/pull/1568
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22435#comment:47>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list