Advanced Ads - Version 1.14.9

Version Description

  • fixed deprecated notices causing a warning
  • fixed possible missing class error
  • replaced AdSense in widgets with dummy ads on Elementor preview pages to prevent issues
  • removed unneeded warning about early called advads_is_amp function
Download this release

Release Info

Developer webzunft
Plugin Icon 128x128 Advanced Ads
Version 1.14.9
Comparing to
See all releases

Code changes from version 1.14.8 to 1.14.9

admin/class-advanced-ads-admin.php CHANGED
@@ -382,15 +382,16 @@ class Advanced_Ads_Admin {
382
  include ADVADS_BASE_PATH . 'admin/views/notices/jqueryui_error.php';
383
  }
384
  }
385
-
386
- // register our own notices on Advanced Ads pages, except from the overview page where they should appear in the notices section
387
  $screen = get_current_screen();
388
- if ( current_user_can( Advanced_Ads_Plugin::user_cap( 'advanced_ads_edit_ads' ) )
 
389
  && ( ! isset( $screen->id ) || 'toplevel_page_advanced-ads' !== $screen->id ) ) {
390
  $this->notices = Advanced_Ads_Admin_Notices::get_instance()->notices;
391
  Advanced_Ads_Admin_Notices::get_instance()->display_notices();
392
-
393
- // allow other Advanced Ads plugins to show admin notices at this late stage
394
  do_action( 'advanced-ads-admin-notices');
395
  }
396
  }
382
  include ADVADS_BASE_PATH . 'admin/views/notices/jqueryui_error.php';
383
  }
384
  }
385
+
386
+ // register our own notices on Advanced Ads pages, except from the overview page where they should appear in the notices section.
387
  $screen = get_current_screen();
388
+ if ( class_exists( 'Advanced_Ads_Admin_Notices', false )
389
+ && current_user_can( Advanced_Ads_Plugin::user_cap( 'advanced_ads_edit_ads' ) )
390
  && ( ! isset( $screen->id ) || 'toplevel_page_advanced-ads' !== $screen->id ) ) {
391
  $this->notices = Advanced_Ads_Admin_Notices::get_instance()->notices;
392
  Advanced_Ads_Admin_Notices::get_instance()->display_notices();
393
+
394
+ // allow other Advanced Ads plugins to show admin notices at this late stage.
395
  do_action( 'advanced-ads-admin-notices');
396
  }
397
  }
admin/includes/notices.php CHANGED
@@ -53,10 +53,10 @@ $advanced_ads_admin_notices = apply_filters( 'advanced-ads-notices', array(
53
  'global' => false,
54
  ),
55
  // Black Friday 2018 promotion.
56
- 'bf2018' => array(
57
  'type' => 'info',
58
  'text' => sprintf(
59
- // translators: %s is a link.
60
  __( 'Our Black Friday / Cyber Monday Offer: <span style="font-weight: bold; font-size: 1.4em; color: green;">-30%%</span> on all add-ons and All Access.<a class="button button-primary" target="_blank" href="%s">Get All Access</a>', 'advanced-ads' ),
61
  ADVADS_URL . 'checkout/?edd_action=add_to_cart&download_id=95170&edd_options[price_id]=1&discount=BFCM2018#utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2018'
62
  ),
@@ -66,12 +66,12 @@ $advanced_ads_admin_notices = apply_filters( 'advanced-ads-notices', array(
66
  'bf2018_2' => array(
67
  'type' => 'info',
68
  'text' => sprintf(
69
- // translators: %s is a link.
70
  __( 'Our Black Friday / Cyber Monday Offer: <span style="font-weight: bold; font-size: 1.4em; color: green;">-30%%</span> on your upgrade.<a class="button button-primary" target="_blank" href="%s">Upgrade now</a>', 'advanced-ads' ),
71
  ADVADS_URL . 'manual/upgrade-to-larger-package/?discount=BFCM2018#utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2018-2'
72
  ),
73
  'global' => true,
74
- ),
75
 
76
  ) );
77
 
53
  'global' => false,
54
  ),
55
  // Black Friday 2018 promotion.
56
+ /*'bf2018' => array(
57
  'type' => 'info',
58
  'text' => sprintf(
59
+ // translators: %s is a link. `30%%` is correct, please use exactly that value so that it shows "30%"
60
  __( 'Our Black Friday / Cyber Monday Offer: <span style="font-weight: bold; font-size: 1.4em; color: green;">-30%%</span> on all add-ons and All Access.<a class="button button-primary" target="_blank" href="%s">Get All Access</a>', 'advanced-ads' ),
61
  ADVADS_URL . 'checkout/?edd_action=add_to_cart&download_id=95170&edd_options[price_id]=1&discount=BFCM2018#utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2018'
62
  ),
66
  'bf2018_2' => array(
67
  'type' => 'info',
68
  'text' => sprintf(
69
+ // translators: %s is a link. `30%%` is correct, please use exactly that value so that it shows "30%"
70
  __( 'Our Black Friday / Cyber Monday Offer: <span style="font-weight: bold; font-size: 1.4em; color: green;">-30%%</span> on your upgrade.<a class="button button-primary" target="_blank" href="%s">Upgrade now</a>', 'advanced-ads' ),
71
  ADVADS_URL . 'manual/upgrade-to-larger-package/?discount=BFCM2018#utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2018-2'
72
  ),
73
  'global' => true,
74
+ ),*/
75
 
76
  ) );
77
 
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.14.8
16
  * Author: Thomas Maier
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.14.8' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
12
  * Plugin Name: Advanced Ads
13
  * Plugin URI: https://wpadvancedads.com
14
  * Description: Manage and optimize your ads in WordPress
15
+ * Version: 1.14.9
16
  * Author: Thomas Maier
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.14.9' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
classes/ad-health-notices.php CHANGED
@@ -179,6 +179,11 @@ class Advanced_Ads_Ad_Health_Notices {
179
  unset( $this->notices[ $_key ] );
180
  }
181
  }
 
 
 
 
 
182
  }
183
 
184
  // unignore notices if `show-hidden=true` is set in the URL.
@@ -249,11 +254,11 @@ class Advanced_Ads_Ad_Health_Notices {
249
  } else {
250
  $this->remove( 'old_php' );
251
  }
252
- if ( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) {
253
  $this->add( 'cache_no_pro' );
254
  } else {
255
  $this->remove( 'cache_no_pro' );
256
- }
257
  // 1907: Autoptimize didn’t cause issues for a while so let’s remove the warning and see
258
  /*if ( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) {
259
  $this->add( 'autoptimize_no_pro' );
179
  unset( $this->notices[ $_key ] );
180
  }
181
  }
182
+
183
+ // check if notice still exists.
184
+ if ( array() === $this->get_notice_array_for_key( $_key ) ) {
185
+ unset( $this->notices[ $_key ] );
186
+ }
187
  }
188
 
189
  // unignore notices if `show-hidden=true` is set in the URL.
254
  } else {
255
  $this->remove( 'old_php' );
256
  }
257
+ /*if ( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) {
258
  $this->add( 'cache_no_pro' );
259
  } else {
260
  $this->remove( 'cache_no_pro' );
261
+ }*/
262
  // 1907: Autoptimize didn’t cause issues for a while so let’s remove the warning and see
263
  /*if ( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) {
264
  $this->add( 'autoptimize_no_pro' );
classes/utils.php CHANGED
@@ -165,7 +165,7 @@ class Advanced_Ads_Utils {
165
  return true;
166
  }
167
 
168
- if ( self::is_elementor_preview() ) {
169
  return true;
170
  }
171
 
@@ -177,20 +177,35 @@ class Advanced_Ads_Utils {
177
  *
178
  * @return bool
179
  */
180
- public static function is_elementor_preview() {
181
- if ( class_exists( '\Elementor\Plugin' ) && class_exists( '\Elementor\Preview' ) ) {
182
  try {
183
  $refl_plugin = new ReflectionClass( '\Elementor\Plugin' );
184
 
185
  if ( $refl_plugin->hasMethod( 'instance' ) ) {
186
  $refl_instance_method = $refl_plugin->getMethod( 'instance' );
187
 
188
- if ( $refl_instance_method->isPublic() && $refl_instance_method->isStatic() && $refl_plugin->hasProperty( 'preview' ) ) {
189
- $preview_property = new ReflectionProperty( '\Elementor\Plugin', 'preview' );
190
 
191
- if ( $preview_property->isPublic() && ! $preview_property->isStatic() ) {
192
- if ( method_exists( '\Elementor\Preview', 'is_preview_mode' ) ) {
193
- return \Elementor\Plugin::$instance->preview->is_preview_mode();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  }
195
  }
196
  }
165
  return true;
166
  }
167
 
168
+ if ( self::is_elementor_preview_or_edit() ) {
169
  return true;
170
  }
171
 
177
  *
178
  * @return bool
179
  */
180
+ private static function is_elementor_preview_or_edit() {
181
+ if ( class_exists( '\Elementor\Plugin' ) ) {
182
  try {
183
  $refl_plugin = new ReflectionClass( '\Elementor\Plugin' );
184
 
185
  if ( $refl_plugin->hasMethod( 'instance' ) ) {
186
  $refl_instance_method = $refl_plugin->getMethod( 'instance' );
187
 
188
+ if ( $refl_instance_method->isPublic() && $refl_instance_method->isStatic() ) {
 
189
 
190
+ if ( class_exists( '\Elementor\Preview' ) && $refl_plugin->hasProperty( 'preview' ) ) {
191
+ $preview_property = new ReflectionProperty( '\Elementor\Plugin', 'preview' );
192
+
193
+ if ( $preview_property->isPublic() && ! $preview_property->isStatic() ) {
194
+ if ( method_exists( '\Elementor\Preview', 'is_preview_mode' )
195
+ && \Elementor\Plugin::$instance->preview->is_preview_mode() ) {
196
+ return true;
197
+ }
198
+ }
199
+ }
200
+
201
+ if ( class_exists( '\Elementor\Editor' ) && $refl_plugin->hasProperty( 'editor' ) ) {
202
+ $editor_property = new ReflectionProperty( '\Elementor\Plugin', 'editor' );
203
+
204
+ if ( $editor_property->isPublic() && ! $editor_property->isStatic() ) {
205
+ if ( method_exists( '\Elementor\Editor', 'is_edit_mode' )
206
+ && \Elementor\Plugin::$instance->editor->is_edit_mode() ) {
207
+ return true;
208
+ }
209
  }
210
  }
211
  }
includes/functions.php CHANGED
@@ -90,12 +90,16 @@ function advads_can_display_ads(){
90
 
91
  /**
92
  * Are we currently on an AMP URL?
93
- * Will always return `false` and show PHP Notice if called before the `parse_query` hook.
94
  *
95
  * @return bool true if amp url, false otherwise
96
  */
97
  function advads_is_amp() {
 
98
  if ( is_admin()
 
 
 
99
  || ( defined( 'REST_REQUEST' ) && REST_REQUEST )
100
  || ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
101
  ) {
@@ -103,9 +107,6 @@ function advads_is_amp() {
103
  }
104
 
105
  if ( ! did_action( 'wp' ) ) {
106
- Advanced_Ads::log( sprintf( esc_html( '%1$s was called before the %2$s action. %3$s' ),
107
- 'advads_is_amp()', 'wp', wp_debug_backtrace_summary() )
108
- );
109
  return false;
110
  }
111
 
90
 
91
  /**
92
  * Are we currently on an AMP URL?
93
+ * Will always return `false` and show PHP Notice if called before the `wp` hook.
94
  *
95
  * @return bool true if amp url, false otherwise
96
  */
97
  function advads_is_amp() {
98
+ global $pagenow;
99
  if ( is_admin()
100
+ || is_embed()
101
+ || is_feed()
102
+ || ( isset( $pagenow ) && in_array( $pagenow, array( 'wp-login.php', 'wp-signup.php', 'wp-activate.php' ), true ) )
103
  || ( defined( 'REST_REQUEST' ) && REST_REQUEST )
104
  || ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST )
105
  ) {
107
  }
108
 
109
  if ( ! did_action( 'wp' ) ) {
 
 
 
110
  return false;
111
  }
112
 
languages/advanced-ads.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Advanved Ads\n"
5
  "Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
6
- "POT-Creation-Date: 2019-08-15 07:20+0000\n"
7
  "POT-Revision-Date: Wed Jul 13 2016 13:23:05 GMT+0200 (CEST)\n"
8
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
9
  "Last-Translator: Thomas Maier <post@webzunft.de>\n"
@@ -82,17 +82,17 @@ msgstr ""
82
  msgid "time of %s"
83
  msgstr ""
84
 
85
- #: admin/class-advanced-ads-admin.php:412 admin/includes/class-menu.php:113
86
  #: admin/includes/class-menu.php:116 admin/views/settings.php:28
87
  msgid "Support"
88
  msgstr ""
89
 
90
- #: admin/class-advanced-ads-admin.php:416
91
  #: admin/includes/class-overview-widgets.php:55
92
  msgid "Add-Ons"
93
  msgstr ""
94
 
95
- #: admin/class-advanced-ads-admin.php:682
96
  #: admin/includes/class-overview-widgets.php:172
97
  #, php-format
98
  msgid ""
@@ -162,7 +162,7 @@ msgid ""
162
  msgstr ""
163
 
164
  #. %1$s is an anchor (link) opening tag, %2$s is the closing tag.
165
- #: classes/ad-health-notices.php:860
166
  #: modules/gadsense/includes/class-mapi.php:1407
167
  #, php-format
168
  msgid "Learn more about AdSense account issues %1$shere%2$s."
@@ -193,73 +193,73 @@ msgstr ""
193
  msgid "Injected in Footer (before closing &lt;/body&gt; Tag)."
194
  msgstr ""
195
 
196
- #: classes/ad_placements.php:47 admin/views/placement-injection-top.php:49
197
  msgid "Before Content"
198
  msgstr ""
199
 
200
- #: classes/ad_placements.php:48
201
  msgid "Injected before the post content."
202
  msgstr ""
203
 
204
- #: classes/ad_placements.php:53 admin/views/placement-injection-top.php:51
205
  msgid "After Content"
206
  msgstr ""
207
 
208
- #: classes/ad_placements.php:54
209
  msgid "Injected after the post content."
210
  msgstr ""
211
 
212
- #: classes/ad_placements.php:59 admin/views/placement-injection-top.php:50
213
  msgid "Content"
214
  msgstr ""
215
 
216
- #: classes/ad_placements.php:60
217
  msgid ""
218
  "Injected into the content. You can choose the paragraph after which the ad "
219
  "content is displayed."
220
  msgstr ""
221
 
222
- #: classes/ad_placements.php:65
223
  msgid "Sidebar Widget"
224
  msgstr ""
225
 
226
- #: classes/ad_placements.php:66
227
  msgid ""
228
  "Create a sidebar widget with an ad. Can be placed and used like any other "
229
  "widget."
230
  msgstr ""
231
 
232
- #: classes/ad_placements.php:237
233
  #, php-format
234
  msgid "paragraph (%s)"
235
  msgstr ""
236
 
237
- #: classes/ad_placements.php:238
238
  #, php-format
239
  msgid "paragraph without image (%s)"
240
  msgstr ""
241
 
242
- #: classes/ad_placements.php:239
243
  #, php-format
244
  msgid "headline 2 (%s)"
245
  msgstr ""
246
 
247
- #: classes/ad_placements.php:240
248
  #, php-format
249
  msgid "headline 3 (%s)"
250
  msgstr ""
251
 
252
- #: classes/ad_placements.php:241
253
  #, php-format
254
  msgid "headline 4 (%s)"
255
  msgstr ""
256
 
257
- #: classes/ad_placements.php:589
258
  #, php-format
259
  msgid "Set <em>%s</em> to show more ads"
260
  msgstr ""
261
 
262
- #: classes/ad_placements.php:590 admin/includes/class-settings.php:160
263
  msgid "Disable level limitation"
264
  msgstr ""
265
 
@@ -528,6 +528,18 @@ msgstr ""
528
  msgid "allow ads in RSS Feed"
529
  msgstr ""
530
 
 
 
 
 
 
 
 
 
 
 
 
 
531
  #: classes/EDD_SL_Plugin_Updater.php:228
532
  #, php-format
533
  msgid ""
@@ -845,7 +857,7 @@ msgid "Add New Ad"
845
  msgstr ""
846
 
847
  #: public/class-advanced-ads.php:742
848
- #: admin/includes/class-ad-groups-list.php:313
849
  #: modules/import-export/classes/import.php:146
850
  #: modules/import-export/classes/import.php:186
851
  #: modules/import-export/classes/import.php:564
@@ -893,15 +905,6 @@ msgid ""
893
  "recommended. Please ask your hosting provider for more information."
894
  msgstr ""
895
 
896
- #: admin/includes/ad-health-notices.php:42
897
- #, php-format
898
- msgid ""
899
- "Your <strong>website uses cache</strong>. Some dynamic features like ad "
900
- "rotation or visitor conditions might not work properly. Use the cache-"
901
- "busting feature of <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> to "
902
- "load ads dynamically."
903
- msgstr ""
904
-
905
  #: admin/includes/ad-health-notices.php:53
906
  #, php-format
907
  msgid ""
@@ -980,148 +983,148 @@ msgid "Create a new AdSense account %1$shere%2$s."
980
  msgstr ""
981
 
982
  #: admin/includes/ad-health-notices.php:197
983
- #: admin/includes/ad-health-notices.php:206
984
- #: admin/includes/ad-health-notices.php:216
985
  msgid ""
986
  "One of your sites is missing the AdSense publisher ID in the ads.txt file."
987
  msgstr ""
988
 
989
  #: admin/includes/ad-health-notices.php:199
990
- #: admin/includes/ad-health-notices.php:208
991
- #: admin/includes/ad-health-notices.php:218
992
  msgctxt "related to ads.txt file"
993
  msgid "Create one now."
994
  msgstr ""
995
 
996
  #. %s is a filter hook, here `the_content`
997
- #: admin/includes/ad-health-notices.php:226
998
  #, php-format
999
  msgid "<strong>%s</strong> filter found multiple times."
1000
  msgstr ""
1001
 
1002
- #: admin/includes/ad-health-notices.php:228
1003
  msgid "Advanced Ads uses the outermost of them."
1004
  msgstr ""
1005
 
1006
  #. %1$s is a plugin name, %2$s is the opening a tag and %3$s the closing one.
1007
- #: admin/includes/ad-health-notices.php:237
1008
- #: admin/includes/ad-health-notices.php:248
1009
- #: admin/includes/ad-health-notices.php:259
1010
- #: admin/includes/ad-health-notices.php:272
1011
  #, php-format
1012
  msgid "Learn how to integrate %1$s with Advanced Ads %2$shere%3$s."
1013
  msgstr ""
1014
 
1015
  #. %s is a service or plugin name.
1016
- #: admin/includes/ad-health-notices.php:286
1017
  #: modules/ads-txt/admin/class-advanced-ads-ads-txt-admin.php:187
1018
  #, php-format
1019
  msgid "%s detected."
1020
  msgstr ""
1021
 
1022
- #: admin/includes/ad-health-notices.php:287
1023
  msgid "Learn how this might impact your ad setup."
1024
  msgstr ""
1025
 
1026
- #: admin/includes/ad-health-notices.php:298
1027
  #, php-format
1028
  msgid ""
1029
  "Advanced Ads handles your ads.txt file automatically. You might be able to "
1030
  "<strong>remove %1$s</strong>."
1031
  msgstr ""
1032
 
1033
- #: admin/includes/ad-health-notices.php:309
1034
  msgid "Advanced Ads handles header and footer codes."
1035
  msgstr ""
1036
 
1037
- #: admin/includes/ad-health-notices.php:310
1038
  #, php-format
1039
  msgid "You might be able to <strong>remove %1$s</strong>."
1040
  msgstr ""
1041
 
1042
- #: admin/includes/ad-health-notices.php:313
1043
  msgid "Learn how."
1044
  msgstr ""
1045
 
1046
- #: admin/includes/class-ad-groups-list.php:165
1047
  msgid "Ad weight"
1048
  msgstr ""
1049
 
1050
- #: admin/includes/class-ad-groups-list.php:176
1051
  #: admin/views/ad-list-timing-column.php:4
1052
  #, php-format
1053
  msgid "starts %s"
1054
  msgstr ""
1055
 
1056
- #: admin/includes/class-ad-groups-list.php:196
1057
  #: admin/views/ad-list-timing-column.php:28
1058
  #, php-format
1059
  msgid "expires %s"
1060
  msgstr ""
1061
 
1062
- #: admin/includes/class-ad-groups-list.php:198
1063
  #: admin/views/ad-list-timing-column.php:30
1064
  #, php-format
1065
  msgid "<strong>expired</strong> %s"
1066
  msgstr ""
1067
 
1068
- #: admin/includes/class-ad-groups-list.php:213
1069
  #, php-format
1070
  msgid "show %d more ads"
1071
  msgstr ""
1072
 
1073
- #: admin/includes/class-ad-groups-list.php:217
1074
  msgid "all published ads are displayed"
1075
  msgstr ""
1076
 
1077
- #: admin/includes/class-ad-groups-list.php:219
1078
  #, php-format
1079
  msgid "up to %d ads displayed"
1080
  msgstr ""
1081
 
1082
- #: admin/includes/class-ad-groups-list.php:222
1083
  msgid "No ads assigned"
1084
  msgstr ""
1085
 
1086
- #: admin/includes/class-ad-groups-list.php:223
1087
  msgid "Add some"
1088
  msgstr ""
1089
 
1090
- #: admin/includes/class-ad-groups-list.php:289
1091
  msgid "Random ads"
1092
  msgstr ""
1093
 
1094
- #: admin/includes/class-ad-groups-list.php:290
1095
  msgid "Display random ads based on ad weight"
1096
  msgstr ""
1097
 
1098
- #: admin/includes/class-ad-groups-list.php:293
1099
  msgid "Ordered ads"
1100
  msgstr ""
1101
 
1102
- #: admin/includes/class-ad-groups-list.php:294
1103
  msgid "Display ads with the highest ad weight first"
1104
  msgstr ""
1105
 
1106
- #: admin/includes/class-ad-groups-list.php:314
1107
  msgid "Usage"
1108
  msgstr ""
1109
 
1110
- #: admin/includes/class-ad-groups-list.php:323
1111
  msgid "Delete"
1112
  msgstr ""
1113
 
1114
- #: admin/includes/class-ad-groups-list.php:344
1115
- #: admin/includes/class-ad-groups-list.php:403
1116
  msgid "Invalid Ad Group"
1117
  msgstr ""
1118
 
1119
- #: admin/includes/class-ad-groups-list.php:349
1120
- #: admin/includes/class-ad-groups-list.php:408
1121
  msgid "You don’t have permission to change the ad groups"
1122
  msgstr ""
1123
 
1124
- #: admin/includes/class-ad-groups-list.php:379
1125
  msgid "No ad group created"
1126
  msgstr ""
1127
 
@@ -1889,23 +1892,6 @@ msgstr ""
1889
  msgid "Yes, but help me first to solve a problem, please"
1890
  msgstr ""
1891
 
1892
- #: admin/includes/notices.php:60
1893
- #, php-format
1894
- msgid ""
1895
- "Our Black Friday / Cyber Monday Offer: <span style=\"font-weight: bold; font-"
1896
- "size: 1.4em; color: green;\">-30%%</span> on all add-ons and All Access.<a "
1897
- "class=\"button button-primary\" target=\"_blank\" href=\"%s\">Get All "
1898
- "Access</a>"
1899
- msgstr ""
1900
-
1901
- #: admin/includes/notices.php:70
1902
- #, php-format
1903
- msgid ""
1904
- "Our Black Friday / Cyber Monday Offer: <span style=\"font-weight: bold; font-"
1905
- "size: 1.4em; color: green;\">-30%%</span> on your upgrade.<a class=\"button "
1906
- "button-primary\" target=\"_blank\" href=\"%s\">Upgrade now</a>"
1907
- msgstr ""
1908
-
1909
  #: admin/includes/shortcode-creator-l10n.php:10
1910
  msgctxt "shortcode creator"
1911
  msgid "Add an ad"
@@ -3095,11 +3081,11 @@ msgid ""
3095
  "for individual help."
3096
  msgstr ""
3097
 
3098
- #: public/views/ad-debug.php:22
3099
  msgid "Ad debug output"
3100
  msgstr ""
3101
 
3102
- #: public/views/ad-debug.php:24
3103
  msgid "Find solutions in the manual"
3104
  msgstr ""
3105
 
@@ -3145,6 +3131,10 @@ msgstr ""
3145
  msgid "Ad blocker fix"
3146
  msgstr ""
3147
 
 
 
 
 
3148
  #: modules/ad-blocker/admin/admin.php:165
3149
  msgid "The asset folder was rebuilt successfully"
3150
  msgstr ""
@@ -3275,6 +3265,11 @@ msgstr ""
3275
  msgid "Your AdSense Publisher ID is missing."
3276
  msgstr ""
3277
 
 
 
 
 
 
3278
  #: modules/gadsense/includes/class-adsense-report.php:472
3279
  #: modules/gadsense/includes/class-adsense-report.php:498
3280
  msgid "Never"
3
  msgstr ""
4
  "Project-Id-Version: Advanved Ads\n"
5
  "Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
6
+ "POT-Creation-Date: 2019-09-06 06:34+0000\n"
7
  "POT-Revision-Date: Wed Jul 13 2016 13:23:05 GMT+0200 (CEST)\n"
8
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
9
  "Last-Translator: Thomas Maier <post@webzunft.de>\n"
82
  msgid "time of %s"
83
  msgstr ""
84
 
85
+ #: admin/class-advanced-ads-admin.php:413 admin/includes/class-menu.php:113
86
  #: admin/includes/class-menu.php:116 admin/views/settings.php:28
87
  msgid "Support"
88
  msgstr ""
89
 
90
+ #: admin/class-advanced-ads-admin.php:417
91
  #: admin/includes/class-overview-widgets.php:55
92
  msgid "Add-Ons"
93
  msgstr ""
94
 
95
+ #: admin/class-advanced-ads-admin.php:683
96
  #: admin/includes/class-overview-widgets.php:172
97
  #, php-format
98
  msgid ""
162
  msgstr ""
163
 
164
  #. %1$s is an anchor (link) opening tag, %2$s is the closing tag.
165
+ #: classes/ad-health-notices.php:865
166
  #: modules/gadsense/includes/class-mapi.php:1407
167
  #, php-format
168
  msgid "Learn more about AdSense account issues %1$shere%2$s."
193
  msgid "Injected in Footer (before closing &lt;/body&gt; Tag)."
194
  msgstr ""
195
 
196
+ #: classes/ad_placements.php:48 admin/views/placement-injection-top.php:49
197
  msgid "Before Content"
198
  msgstr ""
199
 
200
+ #: classes/ad_placements.php:49
201
  msgid "Injected before the post content."
202
  msgstr ""
203
 
204
+ #: classes/ad_placements.php:54 admin/views/placement-injection-top.php:51
205
  msgid "After Content"
206
  msgstr ""
207
 
208
+ #: classes/ad_placements.php:55
209
  msgid "Injected after the post content."
210
  msgstr ""
211
 
212
+ #: classes/ad_placements.php:60 admin/views/placement-injection-top.php:50
213
  msgid "Content"
214
  msgstr ""
215
 
216
+ #: classes/ad_placements.php:61
217
  msgid ""
218
  "Injected into the content. You can choose the paragraph after which the ad "
219
  "content is displayed."
220
  msgstr ""
221
 
222
+ #: classes/ad_placements.php:66
223
  msgid "Sidebar Widget"
224
  msgstr ""
225
 
226
+ #: classes/ad_placements.php:67
227
  msgid ""
228
  "Create a sidebar widget with an ad. Can be placed and used like any other "
229
  "widget."
230
  msgstr ""
231
 
232
+ #: classes/ad_placements.php:238
233
  #, php-format
234
  msgid "paragraph (%s)"
235
  msgstr ""
236
 
237
+ #: classes/ad_placements.php:239
238
  #, php-format
239
  msgid "paragraph without image (%s)"
240
  msgstr ""
241
 
242
+ #: classes/ad_placements.php:240
243
  #, php-format
244
  msgid "headline 2 (%s)"
245
  msgstr ""
246
 
247
+ #: classes/ad_placements.php:241
248
  #, php-format
249
  msgid "headline 3 (%s)"
250
  msgstr ""
251
 
252
+ #: classes/ad_placements.php:242
253
  #, php-format
254
  msgid "headline 4 (%s)"
255
  msgstr ""
256
 
257
+ #: classes/ad_placements.php:590
258
  #, php-format
259
  msgid "Set <em>%s</em> to show more ads"
260
  msgstr ""
261
 
262
+ #: classes/ad_placements.php:591 admin/includes/class-settings.php:160
263
  msgid "Disable level limitation"
264
  msgstr ""
265
 
528
  msgid "allow ads in RSS Feed"
529
  msgstr ""
530
 
531
+ #: classes/display-conditions.php:613
532
+ msgid "older than"
533
+ msgstr ""
534
+
535
+ #: classes/display-conditions.php:614
536
+ msgid "younger than"
537
+ msgstr ""
538
+
539
+ #: classes/display-conditions.php:615
540
+ msgid "days"
541
+ msgstr ""
542
+
543
  #: classes/EDD_SL_Plugin_Updater.php:228
544
  #, php-format
545
  msgid ""
857
  msgstr ""
858
 
859
  #: public/class-advanced-ads.php:742
860
+ #: admin/includes/class-ad-groups-list.php:339
861
  #: modules/import-export/classes/import.php:146
862
  #: modules/import-export/classes/import.php:186
863
  #: modules/import-export/classes/import.php:564
905
  "recommended. Please ask your hosting provider for more information."
906
  msgstr ""
907
 
 
 
 
 
 
 
 
 
 
908
  #: admin/includes/ad-health-notices.php:53
909
  #, php-format
910
  msgid ""
983
  msgstr ""
984
 
985
  #: admin/includes/ad-health-notices.php:197
986
+ #: admin/includes/ad-health-notices.php:207
987
+ #: admin/includes/ad-health-notices.php:217
988
  msgid ""
989
  "One of your sites is missing the AdSense publisher ID in the ads.txt file."
990
  msgstr ""
991
 
992
  #: admin/includes/ad-health-notices.php:199
993
+ #: admin/includes/ad-health-notices.php:209
994
+ #: admin/includes/ad-health-notices.php:219
995
  msgctxt "related to ads.txt file"
996
  msgid "Create one now."
997
  msgstr ""
998
 
999
  #. %s is a filter hook, here `the_content`
1000
+ #: admin/includes/ad-health-notices.php:227
1001
  #, php-format
1002
  msgid "<strong>%s</strong> filter found multiple times."
1003
  msgstr ""
1004
 
1005
+ #: admin/includes/ad-health-notices.php:229
1006
  msgid "Advanced Ads uses the outermost of them."
1007
  msgstr ""
1008
 
1009
  #. %1$s is a plugin name, %2$s is the opening a tag and %3$s the closing one.
1010
+ #: admin/includes/ad-health-notices.php:238
1011
+ #: admin/includes/ad-health-notices.php:249
1012
+ #: admin/includes/ad-health-notices.php:260
1013
+ #: admin/includes/ad-health-notices.php:273
1014
  #, php-format
1015
  msgid "Learn how to integrate %1$s with Advanced Ads %2$shere%3$s."
1016
  msgstr ""
1017
 
1018
  #. %s is a service or plugin name.
1019
+ #: admin/includes/ad-health-notices.php:287
1020
  #: modules/ads-txt/admin/class-advanced-ads-ads-txt-admin.php:187
1021
  #, php-format
1022
  msgid "%s detected."
1023
  msgstr ""
1024
 
1025
+ #: admin/includes/ad-health-notices.php:288
1026
  msgid "Learn how this might impact your ad setup."
1027
  msgstr ""
1028
 
1029
+ #: admin/includes/ad-health-notices.php:299
1030
  #, php-format
1031
  msgid ""
1032
  "Advanced Ads handles your ads.txt file automatically. You might be able to "
1033
  "<strong>remove %1$s</strong>."
1034
  msgstr ""
1035
 
1036
+ #: admin/includes/ad-health-notices.php:310
1037
  msgid "Advanced Ads handles header and footer codes."
1038
  msgstr ""
1039
 
1040
+ #: admin/includes/ad-health-notices.php:311
1041
  #, php-format
1042
  msgid "You might be able to <strong>remove %1$s</strong>."
1043
  msgstr ""
1044
 
1045
+ #: admin/includes/ad-health-notices.php:314
1046
  msgid "Learn how."
1047
  msgstr ""
1048
 
1049
+ #: admin/includes/class-ad-groups-list.php:172
1050
  msgid "Ad weight"
1051
  msgstr ""
1052
 
1053
+ #: admin/includes/class-ad-groups-list.php:184
1054
  #: admin/views/ad-list-timing-column.php:4
1055
  #, php-format
1056
  msgid "starts %s"
1057
  msgstr ""
1058
 
1059
+ #: admin/includes/class-ad-groups-list.php:205
1060
  #: admin/views/ad-list-timing-column.php:28
1061
  #, php-format
1062
  msgid "expires %s"
1063
  msgstr ""
1064
 
1065
+ #: admin/includes/class-ad-groups-list.php:208
1066
  #: admin/views/ad-list-timing-column.php:30
1067
  #, php-format
1068
  msgid "<strong>expired</strong> %s"
1069
  msgstr ""
1070
 
1071
+ #: admin/includes/class-ad-groups-list.php:225
1072
  #, php-format
1073
  msgid "show %d more ads"
1074
  msgstr ""
1075
 
1076
+ #: admin/includes/class-ad-groups-list.php:229
1077
  msgid "all published ads are displayed"
1078
  msgstr ""
1079
 
1080
+ #: admin/includes/class-ad-groups-list.php:232
1081
  #, php-format
1082
  msgid "up to %d ads displayed"
1083
  msgstr ""
1084
 
1085
+ #: admin/includes/class-ad-groups-list.php:235
1086
  msgid "No ads assigned"
1087
  msgstr ""
1088
 
1089
+ #: admin/includes/class-ad-groups-list.php:237
1090
  msgid "Add some"
1091
  msgstr ""
1092
 
1093
+ #: admin/includes/class-ad-groups-list.php:315
1094
  msgid "Random ads"
1095
  msgstr ""
1096
 
1097
+ #: admin/includes/class-ad-groups-list.php:316
1098
  msgid "Display random ads based on ad weight"
1099
  msgstr ""
1100
 
1101
+ #: admin/includes/class-ad-groups-list.php:319
1102
  msgid "Ordered ads"
1103
  msgstr ""
1104
 
1105
+ #: admin/includes/class-ad-groups-list.php:320
1106
  msgid "Display ads with the highest ad weight first"
1107
  msgstr ""
1108
 
1109
+ #: admin/includes/class-ad-groups-list.php:340
1110
  msgid "Usage"
1111
  msgstr ""
1112
 
1113
+ #: admin/includes/class-ad-groups-list.php:349
1114
  msgid "Delete"
1115
  msgstr ""
1116
 
1117
+ #: admin/includes/class-ad-groups-list.php:371
1118
+ #: admin/includes/class-ad-groups-list.php:439
1119
  msgid "Invalid Ad Group"
1120
  msgstr ""
1121
 
1122
+ #: admin/includes/class-ad-groups-list.php:376
1123
+ #: admin/includes/class-ad-groups-list.php:444
1124
  msgid "You don’t have permission to change the ad groups"
1125
  msgstr ""
1126
 
1127
+ #: admin/includes/class-ad-groups-list.php:408
1128
  msgid "No ad group created"
1129
  msgstr ""
1130
 
1892
  msgid "Yes, but help me first to solve a problem, please"
1893
  msgstr ""
1894
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1895
  #: admin/includes/shortcode-creator-l10n.php:10
1896
  msgctxt "shortcode creator"
1897
  msgid "Add an ad"
3081
  "for individual help."
3082
  msgstr ""
3083
 
3084
+ #: public/views/ad-debug.php:6
3085
  msgid "Ad debug output"
3086
  msgstr ""
3087
 
3088
+ #: public/views/ad-debug.php:8
3089
  msgid "Find solutions in the manual"
3090
  msgstr ""
3091
 
3131
  msgid "Ad blocker fix"
3132
  msgstr ""
3133
 
3134
+ #: modules/ad-blocker/admin/admin.php:150
3135
+ msgid "Unable to connect to the filesystem. Please confirm your credentials."
3136
+ msgstr ""
3137
+
3138
  #: modules/ad-blocker/admin/admin.php:165
3139
  msgid "The asset folder was rebuilt successfully"
3140
  msgstr ""
3265
  msgid "Your AdSense Publisher ID is missing."
3266
  msgstr ""
3267
 
3268
+ #. we replace AdSense code with a dummy ad code in the Customizer and Elementor since AdSense could cause them to break. This is the text within that dummy ad.
3269
+ #: modules/gadsense/includes/class-ad-type-adsense.php:222
3270
+ msgid "This will be an AdSense ad on your live site."
3271
+ msgstr ""
3272
+
3273
  #: modules/gadsense/includes/class-adsense-report.php:472
3274
  #: modules/gadsense/includes/class-adsense-report.php:498
3275
  msgid "Never"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: ads, ad manager, ad rotation, adsense, banner
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
- Stable tag: 1.14.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -303,6 +303,13 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
303
 
304
  == Changelog ==
305
 
 
 
 
 
 
 
 
306
  = 1.14.8 =
307
 
308
  * replaced AdSense with dummy ads on Customizer and Elementor preview pages to prevent issues
5
  Requires at least: 4.6
6
  Tested up to: 5.2
7
  Requires PHP: 5.6
8
+ Stable tag: 1.14.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
303
 
304
  == Changelog ==
305
 
306
+ = 1.14.9 =
307
+
308
+ * fixed deprecated notices causing a warning
309
+ * fixed possible missing class error
310
+ * replaced AdSense in widgets with dummy ads on Elementor preview pages to prevent issues
311
+ * removed unneeded warning about early called `advads_is_amp` function
312
+
313
  = 1.14.8 =
314
 
315
  * replaced AdSense with dummy ads on Customizer and Elementor preview pages to prevent issues