Skip to content

Commit

Permalink
Fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenLundsgaard committed Sep 12, 2024
1 parent 737c443 commit 590b679
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Admin/GeneralOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'nonce' => \wp_create_nonce( 'wp_rest' ),
'tutorials' => $this->get_tutorials(),
'integrations' => Integrations::get_integrations(),
'adminURL' => $this->util->get_admin_page_url(),
'adminPageUrl' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
'site_data' => $this->util->get_site_data( $this->options->get_all_raw() ),
'user_roles' => $this->get_user_roles(),
Expand Down
18 changes: 9 additions & 9 deletions src/Admin/HelpOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'gtmkit-' . $script_handle . '-script',
'gtmkitSettings',
[
'rootId' => 'gtmkit-settings',
'currentPage' => $page_slug,
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'tutorials' => $this->get_tutorials(),
'adminURL' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
'site_data' => [ 'gtmkit_version' => GTMKIT_VERSION ],
'isPremium' => ( new PremiumConditional() )->is_met(),
'rootId' => 'gtmkit-settings',
'currentPage' => $page_slug,
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'tutorials' => $this->get_tutorials(),
'adminPageUrl' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
'site_data' => [ 'gtmkit_version' => GTMKIT_VERSION ],
'isPremium' => ( new PremiumConditional() )->is_met(),
]
);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Admin/SetupWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,7 @@ public function enqueue_assets( string $hook ): void {
'currentPage' => 'wizard',
'root' => esc_url_raw( rest_url() ),
'nonce' => wp_create_nonce( 'wp_rest' ),
'adminURL' => $this->util->get_admin_page_url(),
'dashboardUrl' => menu_page_url( 'gtmkit_general', false ),
'templatesUrl' => menu_page_url( 'gtmkit_templates', false ),
'helpUrl' => menu_page_url( 'gtmkit_help', false ),
'adminPageUrl' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
'site_data' => $this->util->get_site_data( $this->options->get_all_raw() ),
'install_data' => ( new PluginDataImport() )->get_all(),
Expand Down
14 changes: 7 additions & 7 deletions src/Admin/TemplatesOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'gtmkit-' . $script_handle . '-script',
'gtmkitSettings',
[
'rootId' => 'gtmkit-settings',
'currentPage' => $page_slug,
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'templates' => $this->get_templates(),
'adminURL' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
'rootId' => 'gtmkit-settings',
'currentPage' => $page_slug,
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'templates' => $this->get_templates(),
'adminPageUrl' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
]
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/UpgradesOptionsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function localize_script( string $page_slug, string $script_handle ): voi
'root' => \esc_url_raw( rest_url() ),
'nonce' => \wp_create_nonce( 'wp_rest' ),
'opportunities' => $this->get_upgrade_opportunities(),
'adminURL' => $this->util->get_admin_page_url(),
'adminPageUrl' => $this->util->get_admin_page_url(),
'settings' => $this->options->get_all_raw(),
]
);
Expand Down

0 comments on commit 590b679

Please sign in to comment.