Skip to content

Commit 8287666

Browse files
committed
fix: nest Templates/Multisite rest namespaces
1 parent 9627b4f commit 8287666

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

inc/Modules/Rest/Multisite_Controller.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@
1717
*/
1818
class Multisite_Controller extends Abstract_REST_Controller {
1919

20+
/**
21+
* The namespace for the REST API.
22+
*/
23+
public const NAMESPACE = parent::NAMESPACE . '/multisite';
24+
25+
/**
26+
* {@inheritDoc}
27+
*
28+
* Reuses the namespace constant.
29+
*
30+
* @var string
31+
*/
32+
protected $namespace = self::NAMESPACE;
33+
2034
/**
2135
* {@inheritDoc}
2236
*/

inc/Modules/Rest/Templates_Controller.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616
class Templates_Controller extends Abstract_REST_Controller {
1717

18+
/**
19+
* The namespace for the REST API.
20+
*/
21+
public const NAMESPACE = parent::NAMESPACE . '/templates';
22+
1823
/**
1924
* {@inheritDoc}
2025
*/

0 commit comments

Comments
 (0)