PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
← All changes | static/views/setup_wizard_interface.php +3 -1 3.0trunk View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2 $consoleUrl = 'https://console.stateless.ci';
3 3 $auth_token = \wpCloud\StatelessMedia\Utility::generate_wizard_auth_token();
4 4 $api_root = get_rest_url();
5 + $is_network = intval(is_network_admin());
6 + $admin_url = admin_url();
5 7 ?>
6 8
7 9 <script>
8 10 (function($) {
@@ -7,9 +9,9 @@
7 9 <script>
8 10 (function($) {
9 11 $(document).ready(function(){
10 12 $('#consoleStatelessIframeWrapper')
11 - .html('<iframe id="console-stateless-wizard" src="<?php echo $consoleUrl ?>/#/?wp_nonce=<?php echo $auth_token ?>&api_root=<?php echo $api_root ?>" />')
13 + .html('<iframe id="console-stateless-wizard" src="<?php esc_html_e($consoleUrl) ?>?wp_nonce=<?php esc_html_e($auth_token) ?>&api_root=<?php esc_html_e($api_root) ?>&is_network=<?php esc_html_e($is_network) ?>&admin_url=<?php esc_html_e($admin_url) ?>" />')
12 14 })
13 15 })(jQuery)
14 16 </script>
15 17