Ad Injection - Version 0.9.4.5

Version Description

Fix problem with mfunc mode widgets on archive pages.

Download this release

Release Info

Developer reviewmylife
Plugin Icon wp plugin Ad Injection
Version 0.9.4.5
Comparing to
See all releases

Code changes from version 0.9.4.4 to 0.9.4.5

Files changed (3) hide show
  1. ad-injection-widget.php +3 -0
  2. ad-injection.php +1 -1
  3. readme.txt +7 -1
ad-injection-widget.php CHANGED
@@ -39,7 +39,9 @@ class Ad_Injection_Widget extends WP_Widget {
39
  }
40
 
41
  $adcode = "";
 
42
  if ($options['ad_insertion_mode'] == 'mfunc'){
 
43
  $adcode = adinj_get_mfunc_code($this->get_ad_file_name());
44
  } else {
45
  $adcode = $advert;
@@ -47,6 +49,7 @@ class Ad_Injection_Widget extends WP_Widget {
47
  $adcode = adinj_ad_code_eval($adcode);
48
 
49
  if ( $advert ){
 
50
  echo $adcode;
51
  }
52
 
39
  }
40
 
41
  $adcode = "";
42
+ $include = "";
43
  if ($options['ad_insertion_mode'] == 'mfunc'){
44
+ $include = adinj_ad_code_include();
45
  $adcode = adinj_get_mfunc_code($this->get_ad_file_name());
46
  } else {
47
  $adcode = $advert;
49
  $adcode = adinj_ad_code_eval($adcode);
50
 
51
  if ( $advert ){
52
+ echo $include;
53
  echo $adcode;
54
  }
55
 
ad-injection.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ad Injection
4
  Plugin URI: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
5
  Description: Injects any advert (e.g. AdSense) into your WordPress posts or widget area. Restrict who sees the ads by post length, age, referrer or IP. Cache compatible.
6
- Version: 0.9.4.4
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
3
  Plugin Name: Ad Injection
4
  Plugin URI: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-wordpress/
5
  Description: Injects any advert (e.g. AdSense) into your WordPress posts or widget area. Restrict who sees the ads by post length, age, referrer or IP. Cache compatible.
6
+ Version: 0.9.4.5
7
  Author: reviewmylife
8
  Author URI: http://www.reviewmylife.co.uk/
9
  License: GPLv2
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.reviewmylife.co.uk/blog/2010/12/06/ad-injection-plugin-w
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free
5
  Requires at least: 2.8.6
6
  Tested up to: 3.0.3
7
- Stable tag: 0.9.4.4
8
 
9
  Injects any adverts (e.g. AdSense) into the WordPress posts or widget area. Restrict who sees ads by post length/age/referrer or IP. Cache compatible.
10
 
@@ -201,6 +201,9 @@ If you do get any errors please use the 'Report a bug or give feedback' link on
201
 
202
  == Changelog ==
203
 
 
 
 
204
  = 0.9.4.4 =
205
  New display option for defining CSS clear as left, right or both.
206
  Suppress file system warnings.
@@ -278,6 +281,9 @@ Fix 'Something badly wrong in num_rand_ads_to_insert' message that occurs on pag
278
 
279
  == Upgrade Notice ==
280
 
 
 
 
281
  = 0.9.4.4 =
282
  If you are using mfunc mode or switch to mfunc and have added ad widgets you may need to re-save them to regenerate the ad files.
283
 
4
  Tags: ad injection, adsense, advert injection, advert, ad, injection, advertising, affiliate, inject, injection, insert, widget, monetize, monetise, banner, Amazon, ClickBank, TradeDoubler, Google, adBrite, post, WordPress, automatically, plugin, Adsense Injection, free
5
  Requires at least: 2.8.6
6
  Tested up to: 3.0.3
7
+ Stable tag: 0.9.4.5
8
 
9
  Injects any adverts (e.g. AdSense) into the WordPress posts or widget area. Restrict who sees ads by post length/age/referrer or IP. Cache compatible.
10
 
201
 
202
  == Changelog ==
203
 
204
+ = 0.9.4.5 =
205
+ Fix problem with mfunc mode widgets on archive pages.
206
+
207
  = 0.9.4.4 =
208
  New display option for defining CSS clear as left, right or both.
209
  Suppress file system warnings.
281
 
282
  == Upgrade Notice ==
283
 
284
+ = 0.9.4.5 =
285
+ If you are using mfunc mode or switch to mfunc and have added ad widgets you may need to re-save them to regenerate the ad files.
286
+
287
  = 0.9.4.4 =
288
  If you are using mfunc mode or switch to mfunc and have added ad widgets you may need to re-save them to regenerate the ad files.
289