[wp-trac] [WordPress Trac] #21913: Detecting MIME Types in WXR Files

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 17 21:21:49 UTC 2012


#21913: Detecting MIME Types in WXR Files
--------------------------+----------------------------
 Reporter:  ReadyMadeWeb  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  WordPress.org
Component:  Import        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+----------------------------

Comment (by nacin):

 Rather than using cURL, we have an HTTP API. You can use wp_remote_head()
 to send a HEAD request, then use wp_remote_retrieve_header() on the
 response to get a specific header.

 We also use lowercase true/false/null.

 Also, please use `svn diff` rather than the GNU `diff` tool to create
 patches. It can still be applied with `patch` but contains SVN metadata
 (and is properly recognized by our bug tracker).

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


More information about the wp-trac mailing list