diff --git a/README.md b/README.md
index 6f6deef..c229857 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
**Tags:** customizer, search
**Requires at least:** 4.6
**Tested up to:** 5.5
-**Stable tag:** 1.1.5
+**Stable tag:** 1.1.6
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -26,6 +26,9 @@ https://www.youtube.com/watch?v=IBFfap_vGzg
## Changelog ##
+### 1.1.6 ###
+- Fix: Admin notice CSS console error in admin area.
+
### 1.1.5 ###
- Fix: Fixed compatibility with other plugins with respect to the admin notice.
diff --git a/admin/bsf-analytics/class-bsf-analytics.php b/admin/bsf-analytics/class-bsf-analytics.php
index d8690c3..514688b 100644
--- a/admin/bsf-analytics/class-bsf-analytics.php
+++ b/admin/bsf-analytics/class-bsf-analytics.php
@@ -85,7 +85,12 @@ public function set_actions() {
* @since 1.0.0
*/
public function get_analytics_url( $analytics_path ) {
- return str_replace( WP_CONTENT_DIR, content_url(), $analytics_path );
+
+ $content_dir_path = wp_normalize_path( WP_CONTENT_DIR );
+
+ $analytics_path = wp_normalize_path( $analytics_path );
+
+ return str_replace( $content_dir_path, content_url(), $analytics_path );
}
/**
@@ -208,10 +213,10 @@ public function option_notice() {
}
/* translators: %s product name */
- $notice_string = __( 'Want to help make %1s even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ' );
+ $notice_string = __( 'Want to help make %1s even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ', 'customizer-search' );
if ( is_multisite() ) {
- $notice_string .= __( 'This will be applicable for all sites from the network.' );
+ $notice_string .= __( 'This will be applicable for all sites from the network.', 'customizer-search' );
}
$language_dir = is_rtl() ? 'rtl' : 'ltr';
@@ -235,7 +240,7 @@ public function option_notice() {
',
/* translators: %s usage doc link */
- sprintf( $notice_string . '%4s', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'astra' ) ),
+ sprintf( $notice_string . '%4s', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'customizer-search' ) ),
add_query_arg(
array(
$key . '_analytics_optin' => 'yes',
@@ -243,7 +248,7 @@ public function option_notice() {
'bsf_analytics_source' => $key,
)
),
- __( 'Yes! Allow it' ),
+ __( 'Yes! Allow it', 'customizer-search' ),
add_query_arg(
array(
$key . '_analytics_optin' => 'no',
@@ -252,7 +257,7 @@ public function option_notice() {
)
),
MONTH_IN_SECONDS,
- __( 'No Thanks' )
+ __( 'No Thanks', 'customizer-search' )
),
'show_if' => true,
'repeat-notice-after' => false,
@@ -356,7 +361,7 @@ public function register_usage_tracking_setting() {
add_settings_field(
$key . '-analytics-optin', // Field ID.
- __( 'Usage Tracking' ), // Field title.
+ __( 'Usage Tracking', 'customizer-search' ), // Field title.
array( $this, 'render_settings_field_html' ), // Field callback function.
'general',
'default', // Settings page slug.
@@ -400,15 +405,15 @@ public function render_settings_field_html( $args ) {
>
%2s', esc_url( $args['usage_doc_link'] ), __( 'Learn More.' ) ) );
+ echo wp_kses_post( sprintf( '%2s', esc_url( $args['usage_doc_link'] ), __( 'Learn More.', 'customizer-search' ) ) );
?>
%1s even more awesome? Allow us to "
"collect non-sensitive diagnostic data and usage information. "
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:186
+#: admin/bsf-analytics/class-bsf-analytics.php:219
msgid "This will be applicable for all sites from the network."
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:210
+#: admin/bsf-analytics/class-bsf-analytics.php:243
#. translators: %s usage doc link
msgid " Know More."
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:217
+#: admin/bsf-analytics/class-bsf-analytics.php:251
msgid "Yes! Allow it"
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:225
+#: admin/bsf-analytics/class-bsf-analytics.php:260
msgid "No Thanks"
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:294
-msgid "Every two days"
-msgstr ""
-
-#: admin/bsf-analytics/class-bsf-analytics.php:348
+#: admin/bsf-analytics/class-bsf-analytics.php:364
msgid "Usage Tracking"
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:380
-msgid "Allow Brainstorm Force products to track non-sensitive usage tracking data."
+#: admin/bsf-analytics/class-bsf-analytics.php:408
+#. translators: %s Product title
+msgid "Allow %s products to track non-sensitive usage tracking data."
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:383
+#: admin/bsf-analytics/class-bsf-analytics.php:411
msgid " This will be applicable for all sites from the network."
msgstr ""
-#: admin/bsf-analytics/class-bsf-analytics.php:388
+#: admin/bsf-analytics/class-bsf-analytics.php:416
msgid "Learn More."
msgstr ""
diff --git a/readme.txt b/readme.txt
index 9dcbfbc..3fd0d31 100644
--- a/readme.txt
+++ b/readme.txt
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/BrainstormForce
Tags: customizer, search
Requires at least: 4.6
Tested up to: 5.5
-Stable tag: 1.1.5
+Stable tag: 1.1.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -26,6 +26,9 @@ https://www.youtube.com/watch?v=IBFfap_vGzg
== Changelog ==
+= 1.1.6 =
+- Fix: Admin notice CSS console error in admin area.
+
= 1.1.5 =
- Fix: Fixed compatibility with other plugins with respect to the admin notice.