wp-cli/wp-cli — pull request #1326 by nschoenholtz (2014-08-12 20:08:59+00:00)
Title: WXR Export: errors in GUID

I was getting the following error and only partial output of the guid element's value if a guid contained an `&`:

Warning: DOMDocument::createElement(): unterminated entity reference p=123... in phar:///usr/bin/wp/vendor/nb/oxymel/Oxymel.php on line 166

In the database I'm working with right now, all the GUIDs are either URLs or blank, so this patch seems to work just fine for me, but I'm not sure if it's really universal enough to merge. I figured it'd make sense to offer it up for feedback either way though. Thanks!