[wp-trac] [WordPress Trac] #19864: Abstract export_wp() for use by CLI scripts
WordPress Trac
wp-trac at lists.automattic.com
Sun May 20 04:15:20 UTC 2012
#19864: Abstract export_wp() for use by CLI scripts
---------------------------+------------------------------
Reporter: scottconnerly | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Export | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
---------------------------+------------------------------
Comment (by scribu):
> This would include writing additional hooks that allow the arguments to
be pulled from the cli
I don't understand the assumption behind this. You need some PHP code to
load WordPress anyway, so you could parse the CLI arguments directly and
then just call export_wp(). No additional hooks needed.
> as well as hooks that allow the output to redirected from the output
buffer to a file.
I agree that we should decouple the XML generation part from the delivery
part.
Also, there are some nested functions in there, which is quite confusing.
They should be moved outside or converted into class methods.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19864#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list