[wp-trac] [WordPress Trac] #33563: Multiple Calls to export_wp() Causes Error

WordPress Trac noreply at wordpress.org
Wed Aug 26 20:06:19 UTC 2015


#33563: Multiple Calls to export_wp() Causes Error
--------------------------+-----------------------------
 Reporter:  drzaphod      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Export        |    Version:  4.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The "export_wp" function in "wp-admin/includes/export.php" makes use of
 inner functions that cause a "previously declared" error when this
 function is called more than once.

 These inner functions should be declared outside of the "export_wp"
 function or guarded by, for example, if(!function_exists('wxr_cdata')){}

 I am trying to make use of this function to perform multiple exports per
 script execution as part of a MU user management system.

 <feature request>
 It would also be help to have the option of saving the export to a
 function parameter by reference rather than the screen.
 </feature request>

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33563>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list