Skip to content

Commit

Permalink
Use __experimental as namespace for the new widget REST APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks authored and jorgefilipecosta committed Apr 17, 2019
1 parent 5d82530 commit 71544f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-sidebars-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class WP_REST_Sidebars_Controller extends WP_REST_Controller {
public function __construct() {
$this->namespace = 'wp/v2';
$this->namespace = '__experimental';
$this->rest_base = 'sidebars';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/class-wp-rest-widget-updater-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class WP_REST_Widget_Updater_Controller extends WP_REST_Controller {
* @access public
*/
public function __construct() {
$this->namespace = 'wp/v2';
$this->namespace = '__experimental';
$this->rest_base = 'widgets';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class WidgetEditHandler extends Component {
}

apiFetch( {
path: `/wp/v2/widgets/${ identifier }/`,
path: `/__experimental/widgets/${ identifier }/`,
data: {
identifier,
instance,
Expand Down

0 comments on commit 71544f2

Please sign in to comment.