Customizer Search - Version 1.1.6

Version Description

  • Fix: Admin notice CSS console error in admin area.
Download this release

Release Info

Developer Nikschavan
Plugin Icon 128x128 Customizer Search
Version 1.1.6
Comparing to
See all releases

Code changes from version 1.1.5 to 1.1.6

admin/bsf-analytics/class-bsf-analytics.php CHANGED
@@ -85,7 +85,12 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
85
  * @since 1.0.0
86
  */
87
  public function get_analytics_url( $analytics_path ) {
88
- return str_replace( WP_CONTENT_DIR, content_url(), $analytics_path );
 
 
 
 
 
89
  }
90
 
91
  /**
@@ -208,10 +213,10 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
208
  }
209
 
210
  /* translators: %s product name */
211
- $notice_string = __( 'Want to help make <strong>%1s</strong> even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ' );
212
 
213
  if ( is_multisite() ) {
214
- $notice_string .= __( 'This will be applicable for all sites from the network.' );
215
  }
216
 
217
  $language_dir = is_rtl() ? 'rtl' : 'ltr';
@@ -235,7 +240,7 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
235
  </div>
236
  </div>',
237
  /* translators: %s usage doc link */
238
- sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'astra' ) ),
239
  add_query_arg(
240
  array(
241
  $key . '_analytics_optin' => 'yes',
@@ -243,7 +248,7 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
243
  'bsf_analytics_source' => $key,
244
  )
245
  ),
246
- __( 'Yes! Allow it' ),
247
  add_query_arg(
248
  array(
249
  $key . '_analytics_optin' => 'no',
@@ -252,7 +257,7 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
252
  )
253
  ),
254
  MONTH_IN_SECONDS,
255
- __( 'No Thanks' )
256
  ),
257
  'show_if' => true,
258
  'repeat-notice-after' => false,
@@ -356,7 +361,7 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
356
 
357
  add_settings_field(
358
  $key . '-analytics-optin', // Field ID.
359
- __( 'Usage Tracking' ), // Field title.
360
  array( $this, 'render_settings_field_html' ), // Field callback function.
361
  'general',
362
  'default', // Settings page slug.
@@ -400,15 +405,15 @@ if ( ! class_exists( 'BSF_Analytics' ) ) {
400
  <input id="<?php echo esc_attr( $args['id'] ); ?>" type="checkbox" value="1" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( get_site_option( $args['name'], 'no' ), 'yes' ); ?>>
401
  <?php
402
  /* translators: %s Product title */
403
- echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
404
 
405
  if ( is_multisite() ) {
406
- esc_html_e( ' This will be applicable for all sites from the network.' );
407
  }
408
  ?>
409
  </label>
410
  <?php
411
- echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.' ) ) );
412
  ?>
413
  </fieldset>
414
  <?php
85
  * @since 1.0.0
86
  */
87
  public function get_analytics_url( $analytics_path ) {
88
+
89
+ $content_dir_path = wp_normalize_path( WP_CONTENT_DIR );
90
+
91
+ $analytics_path = wp_normalize_path( $analytics_path );
92
+
93
+ return str_replace( $content_dir_path, content_url(), $analytics_path );
94
  }
95
 
96
  /**
213
  }
214
 
215
  /* translators: %s product name */
216
+ $notice_string = __( 'Want to help make <strong>%1s</strong> even more awesome? Allow us to collect non-sensitive diagnostic data and usage information. ', 'customizer-search' );
217
 
218
  if ( is_multisite() ) {
219
+ $notice_string .= __( 'This will be applicable for all sites from the network.', 'customizer-search' );
220
  }
221
 
222
  $language_dir = is_rtl() ? 'rtl' : 'ltr';
240
  </div>
241
  </div>',
242
  /* translators: %s usage doc link */
243
+ sprintf( $notice_string . '<span dir="%2s"><a href="%3s" target="_blank" rel="noreferrer noopener">%4s</a><span>', esc_html( $data['product_name'] ), $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'customizer-search' ) ),
244
  add_query_arg(
245
  array(
246
  $key . '_analytics_optin' => 'yes',
248
  'bsf_analytics_source' => $key,
249
  )
250
  ),
251
+ __( 'Yes! Allow it', 'customizer-search' ),
252
  add_query_arg(
253
  array(
254
  $key . '_analytics_optin' => 'no',
257
  )
258
  ),
259
  MONTH_IN_SECONDS,
260
+ __( 'No Thanks', 'customizer-search' )
261
  ),
262
  'show_if' => true,
263
  'repeat-notice-after' => false,
361
 
362
  add_settings_field(
363
  $key . '-analytics-optin', // Field ID.
364
+ __( 'Usage Tracking', 'customizer-search' ), // Field title.
365
  array( $this, 'render_settings_field_html' ), // Field callback function.
366
  'general',
367
  'default', // Settings page slug.
405
  <input id="<?php echo esc_attr( $args['id'] ); ?>" type="checkbox" value="1" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( get_site_option( $args['name'], 'no' ), 'yes' ); ?>>
406
  <?php
407
  /* translators: %s Product title */
408
+ echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.', 'customizer-search' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
409
 
410
  if ( is_multisite() ) {
411
+ esc_html_e( ' This will be applicable for all sites from the network.', 'customizer-search' );
412
  }
413
  ?>
414
  </label>
415
  <?php
416
+ echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.', 'customizer-search' ) ) );
417
  ?>
418
  </fieldset>
419
  <?php
customizer-search.php CHANGED
@@ -7,12 +7,12 @@
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: customizer-search
9
  * Domain Path: /languages
10
- * Version: 1.1.5
11
  *
12
  * @package Customizer_Search
13
  */
14
 
15
- define( 'BSFCS_VER', '1.1.5' );
16
  define( 'BSFCS_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'BSFCS_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'BSFCS_PATH', plugin_basename( __FILE__ ) );
7
  * Author URI: https://www.brainstormforce.com/
8
  * Text Domain: customizer-search
9
  * Domain Path: /languages
10
+ * Version: 1.1.6
11
  *
12
  * @package Customizer_Search
13
  */
14
 
15
+ define( 'BSFCS_VER', '1.1.6' );
16
  define( 'BSFCS_DIR', plugin_dir_path( __FILE__ ) );
17
  define( 'BSFCS_URL', plugins_url( '/', __FILE__ ) );
18
  define( 'BSFCS_PATH', plugin_basename( __FILE__ ) );
languages/customizer-search.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Customizer Search package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Customizer Search 1.1.4\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/customizer-search\n"
8
- "POT-Creation-Date: 2020-06-15 05:32:03+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -25,47 +25,44 @@ msgstr ""
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: grunt-wp-i18n 1.0.3\n"
27
 
28
- #: admin/bsf-analytics/class-bsf-analytics.php:183
29
  #. translators: %s product name
30
  msgid ""
31
  "Want to help make <strong>%1s</strong> even more awesome? Allow us to "
32
  "collect non-sensitive diagnostic data and usage information. "
33
  msgstr ""
34
 
35
- #: admin/bsf-analytics/class-bsf-analytics.php:186
36
  msgid "This will be applicable for all sites from the network."
37
  msgstr ""
38
 
39
- #: admin/bsf-analytics/class-bsf-analytics.php:210
40
  #. translators: %s usage doc link
41
  msgid " Know More."
42
  msgstr ""
43
 
44
- #: admin/bsf-analytics/class-bsf-analytics.php:217
45
  msgid "Yes! Allow it"
46
  msgstr ""
47
 
48
- #: admin/bsf-analytics/class-bsf-analytics.php:225
49
  msgid "No Thanks"
50
  msgstr ""
51
 
52
- #: admin/bsf-analytics/class-bsf-analytics.php:294
53
- msgid "Every two days"
54
- msgstr ""
55
-
56
- #: admin/bsf-analytics/class-bsf-analytics.php:348
57
  msgid "Usage Tracking"
58
  msgstr ""
59
 
60
- #: admin/bsf-analytics/class-bsf-analytics.php:380
61
- msgid "Allow Brainstorm Force products to track non-sensitive usage tracking data."
 
62
  msgstr ""
63
 
64
- #: admin/bsf-analytics/class-bsf-analytics.php:383
65
  msgid " This will be applicable for all sites from the network."
66
  msgstr ""
67
 
68
- #: admin/bsf-analytics/class-bsf-analytics.php:388
69
  msgid "Learn More."
70
  msgstr ""
71
 
2
  # This file is distributed under the same license as the Customizer Search package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Customizer Search 1.1.6\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/customizer-search\n"
8
+ "POT-Creation-Date: 2020-08-19 10:41:52+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
25
  "X-Textdomain-Support: yes\n"
26
  "X-Generator: grunt-wp-i18n 1.0.3\n"
27
 
28
+ #: admin/bsf-analytics/class-bsf-analytics.php:216
29
  #. translators: %s product name
30
  msgid ""
31
  "Want to help make <strong>%1s</strong> even more awesome? Allow us to "
32
  "collect non-sensitive diagnostic data and usage information. "
33
  msgstr ""
34
 
35
+ #: admin/bsf-analytics/class-bsf-analytics.php:219
36
  msgid "This will be applicable for all sites from the network."
37
  msgstr ""
38
 
39
+ #: admin/bsf-analytics/class-bsf-analytics.php:243
40
  #. translators: %s usage doc link
41
  msgid " Know More."
42
  msgstr ""
43
 
44
+ #: admin/bsf-analytics/class-bsf-analytics.php:251
45
  msgid "Yes! Allow it"
46
  msgstr ""
47
 
48
+ #: admin/bsf-analytics/class-bsf-analytics.php:260
49
  msgid "No Thanks"
50
  msgstr ""
51
 
52
+ #: admin/bsf-analytics/class-bsf-analytics.php:364
 
 
 
 
53
  msgid "Usage Tracking"
54
  msgstr ""
55
 
56
+ #: admin/bsf-analytics/class-bsf-analytics.php:408
57
+ #. translators: %s Product title
58
+ msgid "Allow %s products to track non-sensitive usage tracking data."
59
  msgstr ""
60
 
61
+ #: admin/bsf-analytics/class-bsf-analytics.php:411
62
  msgid " This will be applicable for all sites from the network."
63
  msgstr ""
64
 
65
+ #: admin/bsf-analytics/class-bsf-analytics.php:416
66
  msgid "Learn More."
67
  msgstr ""
68
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: brainstormforce, Nikschavan
3
  Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: customizer, search
5
  Requires at least: 4.6
6
- Tested up to: 5.5
7
- Stable tag: 1.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -26,6 +26,9 @@ https://www.youtube.com/watch?v=IBFfap_vGzg
26
 
27
  == Changelog ==
28
 
 
 
 
29
  = 1.1.5 =
30
  - Fix: Fixed compatibility with other plugins with respect to the admin notice.
31
 
3
  Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: customizer, search
5
  Requires at least: 4.6
6
+ Tested up to: 6.1
7
+ Stable tag: 1.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
26
 
27
  == Changelog ==
28
 
29
+ = 1.1.6 =
30
+ - Fix: Admin notice CSS console error in admin area.
31
+
32
  = 1.1.5 =
33
  - Fix: Fixed compatibility with other plugins with respect to the admin notice.
34