Advanced Ads - Version 1.24.1

Version Description

  • fix compatibilty with WP prior to 5.0
Download this release

Release Info

Developer advancedads
Plugin Icon 128x128 Advanced Ads
Version 1.24.1
Comparing to
See all releases

Code changes from version 1.24.0 to 1.24.1

advanced-ads.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Advanced Ads
13
  * Plugin URI: https://wpadvancedads.com
14
  * Description: Manage and optimize your ads in WordPress
15
- * Version: 1.24.0
16
  * Author: Thomas Maier, Advanced Ads GmbH
17
  * Author URI: https://wpadvancedads.com
18
  * Text Domain: advanced-ads
@@ -39,7 +39,7 @@ define( 'ADVADS_BASE_DIR', dirname( ADVADS_BASE ) ); // directory of the plugin
39
  // general and global slug, e.g. to store options in WP.
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
- define( 'ADVADS_VERSION', '1.24.0' );
43
 
44
  // Autoloading, modules and functions.
45
 
12
  * Plugin Name: Advanced Ads
13
  * Plugin URI: https://wpadvancedads.com
14
  * Description: Manage and optimize your ads in WordPress
15
+ * Version: 1.24.1
16
  * Author: Thomas Maier, Advanced Ads GmbH
17
  * Author URI: https://wpadvancedads.com
18
  * Text Domain: advanced-ads
39
  // general and global slug, e.g. to store options in WP.
40
  define( 'ADVADS_SLUG', 'advanced-ads' );
41
  define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
42
+ define( 'ADVADS_VERSION', '1.24.1' );
43
 
44
  // Autoloading, modules and functions.
45
 
classes/ad_type_plain.php CHANGED
@@ -161,8 +161,9 @@ class Advanced_Ads_Ad_Type_Plain extends Advanced_Ads_Ad_Type_Abstract {
161
 
162
  /**
163
  * Apply do_blocks if the content has block code
 
164
  */
165
- if ( has_blocks( $content ) ) {
166
  $content = do_blocks( $content );
167
  }
168
 
161
 
162
  /**
163
  * Apply do_blocks if the content has block code
164
+ * works with WP 5.0.0 and later
165
  */
166
+ if ( function_exists( 'has_blocks' ) && has_blocks( $content ) ) {
167
  $content = do_blocks( $content );
168
  }
169
 
classes/frontend_checks.php CHANGED
@@ -422,6 +422,12 @@ class Advanced_Ads_Frontend_Checks {
422
  }
423
  }
424
 
 
 
 
 
 
 
425
  $aa_classes = apply_filters( 'advanced-ads-body-classes', $aa_classes );
426
 
427
  if ( ! is_array( $classes ) ) {
422
  }
423
  }
424
 
425
+ // hide-ads-from-bots option is enabled
426
+ $options = Advanced_Ads_Plugin::get_instance()->options();
427
+ if ( ! empty( $options['block-bots'] ) ) {
428
+ $aa_classes[] = 'aa-disabled-bots';
429
+ }
430
+
431
  $aa_classes = apply_filters( 'advanced-ads-body-classes', $aa_classes );
432
 
433
  if ( ! is_array( $classes ) ) {
languages/advanced-ads.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the Advanced Ads plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Advanced Ads 1.24.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n"
7
  "Last-Translator: Thomas Maier <post@webzunft.de>\n"
8
  "Language-Team: webgilde <support@wpadvancedads.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-03-10T10:43:43+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: advanced-ads\n"
@@ -424,7 +424,7 @@ msgid "You don’t have access to ads. Please deactivate and re-enable Advanced
424
  msgstr ""
425
 
426
  #: admin/includes/class-ad-type.php:921
427
- #: classes/frontend_checks.php:509
428
  msgid "Get help"
429
  msgstr ""
430
 
@@ -2991,97 +2991,97 @@ msgstr ""
2991
  msgid "highlight ads"
2992
  msgstr ""
2993
 
2994
- #: classes/frontend_checks.php:467
2995
  msgid "Ad Health"
2996
  msgstr ""
2997
 
2998
- #: classes/frontend_checks.php:481
2999
  msgid "Show %d more notifications"
3000
  msgstr ""
3001
 
3002
- #: classes/frontend_checks.php:498
3003
  msgid "Everything is fine"
3004
  msgstr ""
3005
 
3006
- #: classes/frontend_checks.php:566
3007
  msgid "the following code is used for automatic error detection and only visible to admins"
3008
  msgstr ""
3009
 
3010
- #: classes/frontend_checks.php:874
3011
- #: classes/frontend_checks.php:889
3012
  msgid "Hi %s"
3013
  msgstr ""
3014
 
3015
- #: classes/frontend_checks.php:874
3016
  msgid "Advanced Ads detected AdSense Auto ads (%sx) on this page."
3017
  msgstr ""
3018
 
3019
- #: classes/frontend_checks.php:874
3020
- #: classes/frontend_checks.php:889
3021
  msgid "Is that correct?"
3022
  msgstr ""
3023
 
3024
- #: classes/frontend_checks.php:876
3025
  msgid "All is fine"
3026
  msgstr ""
3027
 
3028
- #: classes/frontend_checks.php:877
3029
  msgid "Something is off"
3030
  msgstr ""
3031
 
3032
- #: classes/frontend_checks.php:879
3033
- #: classes/frontend_checks.php:894
3034
  msgid "PS: This is a one-time check from your friendly Advanced Ads plugin. It is only visible to you."
3035
  msgstr ""
3036
 
3037
- #: classes/frontend_checks.php:889
3038
  msgid "Advanced Ads detected the AdSense Auto ads code and <strong>no ads on this page</strong>."
3039
  msgstr ""
3040
 
3041
- #: classes/frontend_checks.php:891
3042
  msgid "This is fine"
3043
  msgstr ""
3044
 
3045
- #: classes/frontend_checks.php:892
3046
  msgid "I expected something else"
3047
  msgstr ""
3048
 
3049
- #: classes/frontend_checks.php:897
3050
- #: classes/frontend_checks.php:905
3051
  msgid "Just click on your problem to learn more from our knowledge base."
3052
  msgstr ""
3053
 
3054
- #: classes/frontend_checks.php:898
3055
  msgid "I want to disable AdSense Auto ads"
3056
  msgstr ""
3057
 
3058
- #: classes/frontend_checks.php:899
3059
- #: classes/frontend_checks.php:906
3060
  msgid "I don’t see any Auto ads"
3061
  msgstr ""
3062
 
3063
- #: classes/frontend_checks.php:900
3064
  msgid "I only see blank space"
3065
  msgstr ""
3066
 
3067
- #: classes/frontend_checks.php:901
3068
  msgid "I want to change the position of the ads"
3069
  msgstr ""
3070
 
3071
- #: classes/frontend_checks.php:902
3072
  #: modules/gadsense/includes/class-network-adsense.php:226
3073
  msgid "Display Auto ads only on specific pages"
3074
  msgstr ""
3075
 
3076
- #: classes/frontend_checks.php:907
3077
  msgid "How to look for the Auto ads code"
3078
  msgstr ""
3079
 
3080
- #: classes/frontend_checks.php:908
3081
  msgid "I have another question or problem"
3082
  msgstr ""
3083
 
3084
- #: classes/frontend_checks.php:911
3085
  msgid "Closing the message"
3086
  msgstr ""
3087
 
2
  # This file is distributed under the same license as the Advanced Ads plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Advanced Ads 1.24.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/advanced-ads/\n"
7
  "Last-Translator: Thomas Maier <post@webzunft.de>\n"
8
  "Language-Team: webgilde <support@wpadvancedads.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-03-18T13:51:21+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: advanced-ads\n"
424
  msgstr ""
425
 
426
  #: admin/includes/class-ad-type.php:921
427
+ #: classes/frontend_checks.php:515
428
  msgid "Get help"
429
  msgstr ""
430
 
2991
  msgid "highlight ads"
2992
  msgstr ""
2993
 
2994
+ #: classes/frontend_checks.php:473
2995
  msgid "Ad Health"
2996
  msgstr ""
2997
 
2998
+ #: classes/frontend_checks.php:487
2999
  msgid "Show %d more notifications"
3000
  msgstr ""
3001
 
3002
+ #: classes/frontend_checks.php:504
3003
  msgid "Everything is fine"
3004
  msgstr ""
3005
 
3006
+ #: classes/frontend_checks.php:572
3007
  msgid "the following code is used for automatic error detection and only visible to admins"
3008
  msgstr ""
3009
 
3010
+ #: classes/frontend_checks.php:880
3011
+ #: classes/frontend_checks.php:895
3012
  msgid "Hi %s"
3013
  msgstr ""
3014
 
3015
+ #: classes/frontend_checks.php:880
3016
  msgid "Advanced Ads detected AdSense Auto ads (%sx) on this page."
3017
  msgstr ""
3018
 
3019
+ #: classes/frontend_checks.php:880
3020
+ #: classes/frontend_checks.php:895
3021
  msgid "Is that correct?"
3022
  msgstr ""
3023
 
3024
+ #: classes/frontend_checks.php:882
3025
  msgid "All is fine"
3026
  msgstr ""
3027
 
3028
+ #: classes/frontend_checks.php:883
3029
  msgid "Something is off"
3030
  msgstr ""
3031
 
3032
+ #: classes/frontend_checks.php:885
3033
+ #: classes/frontend_checks.php:900
3034
  msgid "PS: This is a one-time check from your friendly Advanced Ads plugin. It is only visible to you."
3035
  msgstr ""
3036
 
3037
+ #: classes/frontend_checks.php:895
3038
  msgid "Advanced Ads detected the AdSense Auto ads code and <strong>no ads on this page</strong>."
3039
  msgstr ""
3040
 
3041
+ #: classes/frontend_checks.php:897
3042
  msgid "This is fine"
3043
  msgstr ""
3044
 
3045
+ #: classes/frontend_checks.php:898
3046
  msgid "I expected something else"
3047
  msgstr ""
3048
 
3049
+ #: classes/frontend_checks.php:903
3050
+ #: classes/frontend_checks.php:911
3051
  msgid "Just click on your problem to learn more from our knowledge base."
3052
  msgstr ""
3053
 
3054
+ #: classes/frontend_checks.php:904
3055
  msgid "I want to disable AdSense Auto ads"
3056
  msgstr ""
3057
 
3058
+ #: classes/frontend_checks.php:905
3059
+ #: classes/frontend_checks.php:912
3060
  msgid "I don’t see any Auto ads"
3061
  msgstr ""
3062
 
3063
+ #: classes/frontend_checks.php:906
3064
  msgid "I only see blank space"
3065
  msgstr ""
3066
 
3067
+ #: classes/frontend_checks.php:907
3068
  msgid "I want to change the position of the ads"
3069
  msgstr ""
3070
 
3071
+ #: classes/frontend_checks.php:908
3072
  #: modules/gadsense/includes/class-network-adsense.php:226
3073
  msgid "Display Auto ads only on specific pages"
3074
  msgstr ""
3075
 
3076
+ #: classes/frontend_checks.php:913
3077
  msgid "How to look for the Auto ads code"
3078
  msgstr ""
3079
 
3080
+ #: classes/frontend_checks.php:914
3081
  msgid "I have another question or problem"
3082
  msgstr ""
3083
 
3084
+ #: classes/frontend_checks.php:917
3085
  msgid "Closing the message"
3086
  msgstr ""
3087
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ads, ad manager, ad rotation, adsense, banner
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 1.24.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -317,6 +317,10 @@ Yes. You can use plenty of [hooks](https://wpadvancedads.com/codex/) to customiz
317
 
318
  == Changelog ==
319
 
 
 
 
 
320
  = 1.24.0 =
321
 
322
  - AdSense deprecated Link Units and might no longer fill them. So we removed them when creating new ads. [Learn more](https://wpadvancedads.com/adsense-link-units/)
4
  Requires at least: 4.6
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 1.24.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
317
 
318
  == Changelog ==
319
 
320
+ = 1.24.1 =
321
+
322
+ - fix compatibilty with WP prior to 5.0
323
+
324
  = 1.24.0 =
325
 
326
  - AdSense deprecated Link Units and might no longer fill them. So we removed them when creating new ads. [Learn more](https://wpadvancedads.com/adsense-link-units/)