[wp-trac] [WordPress Trac] #22435: Export API

WordPress Trac noreply at wordpress.org
Wed Nov 14 09:36:57 UTC 2012


#22435: Export API
------------------------------------+------------------------------
 Reporter:  nbachiyski              |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Export                  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by scribu):

 I knew there was something else I didn't like about the method names: they
 contain the format name, so they're not generic.

 `export_to_xml_file()` should be `export_to_file()`, `serve_xml()` should
 be `serve()` etc.

 Otherwise, you'd end up with weird things like this:

 {{{
 $exporter = new WP_JSON_Writer();
 $exporter->export_to_xml_file();
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22435#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list