From 591111def2627e723ca5bd740595bccc732a5218 Mon Sep 17 00:00:00 2001 From: padams Date: Sun, 11 Sep 2022 21:30:59 +0000 Subject: [PATCH] updating OWA SDK dependancy, fixing missing namespace, cleanup. --- composer.json | 2 +- owa-plugin.php | 4 ++-- src/settings/fields/url.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index c6a0ea7..6af1a0a 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "sort-packages": true }, "require": { - "open-web-analytics/owa-php-sdk": "^1.0.6" + "open-web-analytics/owa-php-sdk": "^1.0.7" }, "autoload": { "psr-4": { diff --git a/owa-plugin.php b/owa-plugin.php index ed7fdbc..b64ff9d 100644 --- a/owa-plugin.php +++ b/owa-plugin.php @@ -1122,8 +1122,8 @@ public function registerSettingsPages() { 'parent_slug' => 'owa-wordpress', 'is_top_level' => true, 'top_level_menu_title' => 'OWA', - 'title' => 'Open Web Analytics', - 'menu_title' => 'Tracking Settings', + 'title' => 'OWA Settings', + 'menu_title' => 'Settings', 'required_capability' => 'manage_options', 'menu_slug' => 'owa-wordpress-settings', 'menu-icon' => 'dashicons-chart-pie', diff --git a/src/settings/fields/url.php b/src/settings/fields/url.php index 403ac61..dfb6ea4 100644 --- a/src/settings/fields/url.php +++ b/src/settings/fields/url.php @@ -47,7 +47,7 @@ public function isValid( $value ) { sprintf( '%s %s', $this->get( 'label_for' ), - util::localize( 'URL scheme required. (i.e. http:// or https:// only.)' ) ) ); + \owaWp\util::localize( 'URL scheme required. (i.e. http:// or https:// only.)' ) ) ); return false; }