← All changes
|
jetpack_vendor/automattic/jetpack-import/src/class-main.php
+17
-11
12.0.3
→
16.3-beta
View file →
| @@ -19,9 +19,9 @@ | ||
| 19 | 19 | * Package version. |
| 20 | 20 | * |
| 21 | 21 | * @var string |
| 22 | 22 | */ |
| 23 | - const PACKAGE_VERSION = '0.5.0'; | |
| 23 | + const PACKAGE_VERSION = '0.10.0'; | |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * A list of all the routes. |
| 27 | 27 | * |
| @@ -64,18 +64,24 @@ | ||
| 64 | 64 | // Set up the REST authentication hooks. |
| 65 | 65 | Rest_Authentication::init(); |
| 66 | 66 | |
| 67 | 67 | $routes = array( |
| 68 | - 'categories' => new Endpoints\Category(), | |
| 69 | - 'comments' => new Endpoints\Comment(), | |
| 70 | - 'custom-css' => new Endpoints\Custom_CSS(), | |
| 71 | - 'global-styles' => new Endpoints\Global_Style(), | |
| 72 | - 'media' => new Endpoints\Attachment(), | |
| 73 | - 'menu-items' => new Endpoints\Menu_Item(), | |
| 74 | - 'menus' => new Endpoints\Menu(), | |
| 75 | - 'pages' => new Endpoints\Page(), | |
| 76 | - 'posts' => new Endpoints\Post(), | |
| 77 | - 'tags' => new Endpoints\Tag(), | |
| 68 | + 'blocks' => new Endpoints\Block(), | |
| 69 | + 'categories' => new Endpoints\Category(), | |
| 70 | + 'comments' => new Endpoints\Comment(), | |
| 71 | + 'custom-css' => new Endpoints\Custom_CSS(), | |
| 72 | + 'end' => new Endpoints\End(), | |
| 73 | + 'global-styles' => new Endpoints\Global_Style(), | |
| 74 | + 'media' => new Endpoints\Attachment(), | |
| 75 | + 'menu-items' => new Endpoints\Menu_Item(), | |
| 76 | + 'menus' => new Endpoints\Menu(), | |
| 77 | + 'navigation' => new Endpoints\Navigation(), | |
| 78 | + 'pages' => new Endpoints\Page(), | |
| 79 | + 'posts' => new Endpoints\Post(), | |
| 80 | + 'start' => new Endpoints\Start(), | |
| 81 | + 'tags' => new Endpoints\Tag(), | |
| 82 | + 'template-parts' => new Endpoints\Template_Part(), | |
| 83 | + 'templates' => new Endpoints\Template(), | |
| 78 | 84 | ); |
| 79 | 85 | |
| 80 | 86 | /** |
| 81 | 87 | * Allow other plugins to modify import routes. |