Awesome and thanks. So guys should we push over to TRT GH or?<span></span><br><br>On Thursday, October 16, 2014, Lance Willett <<a href="mailto:nanobar@gmail.com">nanobar@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's the checklist for preparing a new XML file, next time you need to do it.<br>
<br>
Often when I get the new XML file from<br>
<a href="http://wpthemetestdata.wordpress.com/" target="_blank">http://wpthemetestdata.wordpress.com/</a> it needs a bit of massaging<br>
before commit to our pub repo.<br>
<br>
Here’s the process<br>
<br>
1. WPTRT admins make changes to the test site on WP.com.<br>
2. Go to <a href="http://wpthemetestdata.wordpress.com/" target="_blank">http://wpthemetestdata.wordpress.com/</a> and export the full XML<br>
file, and open it locally in a text editor.<br>
3. Clean it up.<br>
4. Diff it with the previous version to be sure of no weird changes or<br>
additions, other than the expected ones.<br>
5. Push to GitHub.<br>
6. Go to <a href="http://codex.wordpress.org/Theme_Unit_Test" target="_blank">http://codex.wordpress.org/Theme_Unit_Test</a>, edit the page,<br>
change the UTC timestamp to “now” to show the most current update<br>
timestamp. **You can stop doing this probably since GitHub will have a<br>
history going forward.**<br>
<br>
Notes for the XML clean up, step 3.<br>
<br>
Remove the following metadata elements that are specific to WP.com.<br>
<br>
superawesome<br>
_edit_last<br>
email_notification<br>
_searchme<br>
jabber_published<br>
geo_public<br>
_elasticsearch_indexed_on<br>
<br>
I look for these patterns using a text editor like TextMate or Sublime<br>
Text, with regex search turned on:<br>
<br>
1. <a href="https://gist.github.com/lancewillett/a7c849026e2e403399a0" target="_blank">https://gist.github.com/lancewillett/a7c849026e2e403399a0</a><br>
2. <a href="https://gist.github.com/lancewillett/127085c444ec6ff398d1" target="_blank">https://gist.github.com/lancewillett/127085c444ec6ff398d1</a><br>
<br>
Then search/replace with an empty string to remove from the XML file.<br>
<br>
It's not end of the world if they make it into the Unit Test XML file,<br>
but it's just clutter.<br>
<br>
– Lance<br>
<br>
On Thu, Oct 16, 2014 at 11:15 AM, Lance Willett <<a href="javascript:;" onclick="_e(event, 'cvml', 'nanobar@gmail.com')">nanobar@gmail.com</a>> wrote:<br>
> The history of the file changes is public, it's part of our WP.com<br>
> public themes SVN repo.<br>
><br>
> You can see the history by doing something like:<br>
> svn log <a href="https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml" target="_blank">https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml</a><br>
><br>
> I'm totally happy for the file to move to GitHub. If WPTRT has an<br>
> account and you'd like to maintain it going forward—please just grab<br>
> the latest copy and start from there; I don't need to do anything<br>
> further.<br>
><br>
> Then edit the Codex page at <a href="http://codex.wordpress.org/Theme_Unit_Test" target="_blank">http://codex.wordpress.org/Theme_Unit_Test</a><br>
> to point to the GitHub repo instead of the SVN repo.<br>
><br>
> Done. :)<br>
><br>
> – Lance<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'theme-reviewers@lists.wordpress.org')">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</blockquote>