diff --git a/includes/Runtime.php b/includes/Runtime.php index 019da32..f7473a3 100644 --- a/includes/Runtime.php +++ b/includes/Runtime.php @@ -45,9 +45,16 @@ public function prepareRuntime() { 'title' => htmlspecialchars_decode( \get_bloginfo( 'name' ) ), ), 'admin_url' => \admin_url(), + 'adminUrl' => \admin_url(), 'base_url' => \get_home_url() . '/index.php', + 'homeUrl' => \get_home_url(), 'capabilities' => $this->container->get( 'capabilities' )->all(), - 'sdk' => $sdk, + 'sdk' => $sdk, // kept for backward compatability, will be removed later + 'siteUrl' => \get_site_url(), + 'siteTitle' => htmlspecialchars_decode( \get_bloginfo( 'name' ) ), + 'restUrl' => \esc_url_raw( \get_home_url() . '/index.php?rest_route=' ), + 'restNonce' => wp_create_nonce('wp-rest'), + ...$sdk ); }