Skip to content

Instantly share code, notes, and snippets.

Verifying that +panks is my openname (Bitcoin username). https://onename.io/panks
@panks
panks / export_xml.xml
Created May 2, 2013 15:25
XML file output by current export.php implementation of WordPress.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@panks
panks / export_json.json
Created May 2, 2013 15:24
JSON output by WordPress using new export.php (https://gist.github.com/panks/5502750).
{
"channel": {
"title": "GSOC 2013 Project",
"link": "http://localhost/wp/trunk",
"description": "Just another WordPress site",
"pubDate": "Thu, 02 May 2013 14:49:45 +0000",
"language": "en-US",
"wp:wxr_version": "1.2",
@panks
panks / export.php
Last active December 16, 2015 21:49
New /wp-admin/includes/export.php for WordPress which generates JSON output.
<?php
/**
* WordPress Export Administration API
*
* @package WordPress
* @subpackage Administration
*/
/**
* Version number for the export format.