Ad Inserter – WordPress Ads Management with AdSense Header Integration - Version 2.1.7

Version Description

  • Fixed error using PHP 5.4 or earlier
Download this release

Release Info

Developer spacetime
Plugin Icon 128x128 Ad Inserter – WordPress Ads Management with AdSense Header Integration
Version 2.1.7
Comparing to
See all releases

Code changes from version 2.1.6 to 2.1.7

Files changed (6) hide show
  1. ad-inserter.php +4 -1
  2. class.php +4 -2
  3. constants.php +1 -1
  4. css/ad-inserter.css +1 -1
  5. js/ad-inserter.js +1 -1
  6. readme.txt +6 -0
ad-inserter.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
- Version: 2.1.6
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
@@ -11,6 +11,9 @@ Plugin URI: http://adinserter.pro/documentation
11
  /*
12
  Change Log
13
 
 
 
 
14
  Ad Inserter 2.1.6 - 2017-05-12
15
  - Added support for insertion before/after multiple paragraphs
16
  - Added initial support for impression and click tracking (Pro only)
1
  <?php
2
  /*
3
  Plugin Name: Ad Inserter
4
+ Version: 2.1.7
5
  Description: Insert any ad or code into Wordpress. Perfect for all kinds of ads. Simply enter any ad or HTML/Javascript/PHP code and select where and how you want to display it.
6
  Author: Igor Funa
7
  Author URI: http://igorfuna.com/
11
  /*
12
  Change Log
13
 
14
+ Ad Inserter 2.1.7 - 2017-05-13
15
+ - Fixed error using PHP 5.4 or earlier
16
+
17
  Ad Inserter 2.1.6 - 2017-05-12
18
  - Added support for insertion before/after multiple paragraphs
19
  - Added initial support for impression and click tracking (Pro only)
class.php CHANGED
@@ -332,9 +332,11 @@ abstract class ai_BaseCodeBlock {
332
  eval ("?>". $code . "<?php ");
333
  } catch (Exception $e) {
334
  $php_error = "PHP error in " . AD_INSERTER_NAME . " code block ".$obj->number . " - " . $obj->get_ad_name() . "<br />\n" . $e->getMessage();
 
335
  }
336
-
337
- $processed_code = ob_get_clean ();
 
338
 
339
  if (strpos ($processed_code, __FILE__) || $php_error != "") {
340
  if (preg_match ("%(.+) in ".__FILE__."%", $processed_code, $error_message))
332
  eval ("?>". $code . "<?php ");
333
  } catch (Exception $e) {
334
  $php_error = "PHP error in " . AD_INSERTER_NAME . " code block ".$obj->number . " - " . $obj->get_ad_name() . "<br />\n" . $e->getMessage();
335
+ // Error using PHP 5.4 or earlier
336
  }
337
+ // finally {
338
+ $processed_code = ob_get_clean ();
339
+ // }
340
 
341
  if (strpos ($processed_code, __FILE__) || $php_error != "") {
342
  if (preg_match ("%(.+) in ".__FILE__."%", $processed_code, $error_message))
constants.php CHANGED
@@ -14,7 +14,7 @@ if (!defined( 'AD_INSERTER_NAME'))
14
  define ('AD_INSERTER_NAME', 'Ad Inserter');
15
 
16
  if (!defined( 'AD_INSERTER_VERSION'))
17
- define ('AD_INSERTER_VERSION', '2.1.6');
18
 
19
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
20
  define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
14
  define ('AD_INSERTER_NAME', 'Ad Inserter');
15
 
16
  if (!defined( 'AD_INSERTER_VERSION'))
17
+ define ('AD_INSERTER_VERSION', '2.1.7');
18
 
19
  if (!defined ('AD_INSERTER_PLUGIN_BASENAME'))
20
  define ('AD_INSERTER_PLUGIN_BASENAME', plugin_basename (__FILE__));
css/ad-inserter.css CHANGED
@@ -1,5 +1,5 @@
1
  #ai-data {
2
- font-family: "2.1.6"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
1
  #ai-data {
2
+ font-family: "2.1.7"; /* Used for version number of the file */
3
  }
4
 
5
  #blocked-warning {
js/ad-inserter.js CHANGED
@@ -1,4 +1,4 @@
1
- var javascript_version = "2.1.6";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
1
+ var javascript_version = "2.1.7";
2
  var ignore_key = true;
3
  var start = 1;
4
  var end = 16;
readme.txt CHANGED
@@ -640,6 +640,9 @@ AD CODE RIGHT
640
 
641
  == Changelog ==
642
 
 
 
 
643
  = 2.1.6 =
644
  - Added support for insertion before/after multiple paragraphs
645
  - Added initial support for impression and click tracking (Pro only)
@@ -994,6 +997,9 @@ AD CODE RIGHT
994
 
995
  == Upgrade Notice ==
996
 
 
 
 
997
  = 2.1.6 =
998
  Added support for insertion before/after multiple paragraphs;
999
  Few bug fixes and cosmetic changes
640
 
641
  == Changelog ==
642
 
643
+ = 2.1.7 =
644
+ - Fixed error using PHP 5.4 or earlier
645
+
646
  = 2.1.6 =
647
  - Added support for insertion before/after multiple paragraphs
648
  - Added initial support for impression and click tracking (Pro only)
997
 
998
  == Upgrade Notice ==
999
 
1000
+ = 2.1.7 =
1001
+ Fixed error using PHP 5.4 or earlier
1002
+
1003
  = 2.1.6 =
1004
  Added support for insertion before/after multiple paragraphs;
1005
  Few bug fixes and cosmetic changes