Advanced Ads - Version 1.11.1

Version Description

  • fixed AdSense code field not working if AdSense connection is missing
Download this release

Release Info

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

Code changes from version 1.11 to 1.11.1

admin/assets/js/admin.js CHANGED
@@ -972,6 +972,14 @@ window.Advanced_Ads_Admin = window.Advanced_Ads_Admin || {
972
  }
973
  return text;
974
  },
 
 
 
 
 
 
 
 
975
  check_ad_source: function(){
976
  var text = Advanced_Ads_Admin.get_ad_source_editor_text();
977
  var enabled_php = jQuery('#advads-parameters-php').prop('checked');
972
  }
973
  return text;
974
  },
975
+ set_ad_source_editor_text: function(text){
976
+ if (Advanced_Ads_Admin.editor && Advanced_Ads_Admin.editor.codemirror){
977
+ Advanced_Ads_Admin.editor.codemirror.setValue(text);
978
+ }
979
+ else {
980
+ jQuery('#advads-ad-content-plain').val(text);
981
+ }
982
+ },
983
  check_ad_source: function(){
984
  var text = Advanced_Ads_Admin.get_ad_source_editor_text();
985
  var enabled_php = jQuery('#advads-parameters-php').prop('checked');
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.11
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.11' );
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.11.1
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.11.1' );
43
 
44
  /*----------------------------------------------------------------------------*
45
  * Autoloading, modules and functions
modules/gadsense/admin/views/adsense-ad-parameters.php CHANGED
@@ -47,17 +47,20 @@ $mapi_ad_codes['length'] = count( $mapi_ad_codes );
47
  * translators: this is a label for an ad that we can currently not import from the AdSense account
48
  */
49
  esc_html_e( 'unsupported', 'advanced-ads' ); ?>';
50
-
51
- if ( 'undefined' == typeof gadsenseData ) {
52
- window.gadsenseData = {};
53
- }
54
- gadsenseData['pubId'] = '<?php echo $adsense_id; ?>';
55
- gadsenseData['msg'] = {
56
- unknownAd : '<?php esc_attr_e( "The ad details couldn't be retrieved from the ad code", 'advanced-ads' ); ?>',
57
- pubIdMismatch: '<?php esc_attr_e( 'Warning : The AdSense account from this code does not match the one set in the Advanced Ads options.', 'advanced-ads' ); ?>',
58
- };
59
  </script>
60
- <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
61
  <input type="hidden" id="advads-ad-content-adsense" name="advanced_ad[content]" value="<?php echo esc_attr( $json_content ); ?>" />
62
  <input type="hidden" name="unit_id" id="unit_id" value="<?php echo esc_attr( $unit_id ); ?>" />
63
  <?php if ( $use_paste_code ) : ?>
47
  * translators: this is a label for an ad that we can currently not import from the AdSense account
48
  */
49
  esc_html_e( 'unsupported', 'advanced-ads' ); ?>';
 
 
 
 
 
 
 
 
 
50
  </script>
51
+ <?php endif; // if ( $has_token ) ?>
52
+
53
+ <script type="text/javascript">
54
+ if ( 'undefined' == typeof gadsenseData ) {
55
+ window.gadsenseData = {};
56
+ }
57
+ gadsenseData['pubId'] = '<?php echo $adsense_id; ?>';
58
+ gadsenseData['msg'] = {
59
+ unknownAd : '<?php esc_attr_e( "The ad details couldn't be retrieved from the ad code", 'advanced-ads' ); ?>',
60
+ pubIdMismatch: '<?php esc_attr_e( 'Warning: The AdSense account from this code does not match the one set in the Advanced Ads options.', 'advanced-ads' ); ?>',
61
+ };
62
+ </script>
63
+
64
  <input type="hidden" id="advads-ad-content-adsense" name="advanced_ad[content]" value="<?php echo esc_attr( $json_content ); ?>" />
65
  <input type="hidden" name="unit_id" id="unit_id" value="<?php echo esc_attr( $unit_id ); ?>" />
66
  <?php if ( $use_paste_code ) : ?>
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.0
7
  Requires PHP: 5.4
8
- Stable tag: 1.11
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -15,7 +15,7 @@ Manage and optimize your ads. All ad codes, Google AdSense Auto ads, ad widget,
15
 
16
  Are you looking for a simple ad manager plugin? These are the top arguments to use Advanced Ads:
17
 
18
- * approved in 9 years of Publishing and Ad Optimization
19
  * Google AdSense Partner
20
  * most features to test and optimize ads
21
  * unlimited ad units
@@ -276,6 +276,10 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
276
 
277
  == Changelog ==
278
 
 
 
 
 
279
  = 1.11 =
280
 
281
  * improved the AdSense onboarding process
@@ -382,6 +386,10 @@ Yes. Advanced Ads is based on WordPress standards and therefore easily customiza
382
 
383
  == Upgrade Notice ==
384
 
 
 
 
 
385
  = 1.11 =
386
 
387
  Improves AdSense onboarding
5
  Requires at least: 4.6
6
  Tested up to: 5.0
7
  Requires PHP: 5.4
8
+ Stable tag: 1.11.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
15
 
16
  Are you looking for a simple ad manager plugin? These are the top arguments to use Advanced Ads:
17
 
18
+ * approved in 10 years of Publishing and Ad Optimization
19
  * Google AdSense Partner
20
  * most features to test and optimize ads
21
  * unlimited ad units
276
 
277
  == Changelog ==
278
 
279
+ = 1.11.1 =
280
+
281
+ * fixed AdSense code field not working if AdSense connection is missing
282
+
283
  = 1.11 =
284
 
285
  * improved the AdSense onboarding process
386
 
387
  == Upgrade Notice ==
388
 
389
+ = 1.11.1 =
390
+
391
+ * fixed AdSense code field not working if AdSense connection is missing
392
+
393
  = 1.11 =
394
 
395
  Improves AdSense onboarding