Skip to content

Commit

Permalink
Explorations of Site Transfer Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 23, 2024
1 parent d9cd270 commit cb11c3a
Show file tree
Hide file tree
Showing 247 changed files with 50,912 additions and 0 deletions.
1 change: 1 addition & 0 deletions transfer-protocol/.phpunit.result.cache

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions transfer-protocol/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Site Transfer Protocol prototype

This is an exploration of what could become the WordPress
Site Transfer Protocol. The current version is focused on
finding and rewriting URLs as well as downloading any
related assets.
25 changes: 25 additions & 0 deletions transfer-protocol/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

require_once __DIR__ . "/../class-wp-html-token.php";
require_once __DIR__ . "/../class-wp-html-span.php";
require_once __DIR__ . "/../class-wp-html-text-replacement.php";
require_once __DIR__ . "/../class-wp-html-decoder.php";
require_once __DIR__ . "/../class-wp-html-attribute-token.php";

require_once __DIR__ . "/../class-wp-html-decoder.php";
require_once __DIR__ . "/../class-wp-html-tag-processor.php";
require_once __DIR__ . "/../class-wp-html-open-elements.php";
require_once __DIR__ . "/../class-wp-token-map.php";
require_once __DIR__ . "/../html5-named-character-references.php";
require_once __DIR__ . "/../class-wp-html-active-formatting-elements.php";
require_once __DIR__ . "/../class-wp-html-processor-state.php";
require_once __DIR__ . "/../class-wp-html-unsupported-exception.php";
require_once __DIR__ . "/../class-wp-html-processor.php";

require_once __DIR__ . "/../class-wp-xml-decoder.php";
require_once __DIR__ . "/../class-wp-xml-tag-processor.php";
require_once __DIR__ . "/../class-wp-xml-processor.php";

require_once __DIR__ . '/src/WP_Block_Markup_Processor.php';
require_once __DIR__ . '/src/WP_Block_Markup_Url_Processor.php';
require_once __DIR__ . '/vendor/autoload.php';
17 changes: 17 additions & 0 deletions transfer-protocol/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "wordpress/transfer-protocol",
"autoload": {
"psr-4": {
"Wordpress\\TransferProtocol\\": "src/"
}
},
"authors": [
{
"name": "Adam Zieliński",
"email": "[email protected]"
}
],
"require": {
"rowbot/url": "^4.0"
}
}
Loading

0 comments on commit cb11c3a

Please sign in to comment.