WordPress.org

Plugin Directory

Changeset 1051500


Ignore:
Timestamp:
12/22/14 12:39:47 (2 years ago)
Author:
ozh
Message:

2.0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ozh-who-sees-ads/trunk/wp_ozh_whoseesads.php

    r1041519 r1051500  
    44Plugin URI: http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/ 
    55Description: Manage your Ads. Decide under when circumstances to display them. Make more money. 
    6 Version: 2.0.4 
     6Version: 2.0.5 
    77Author: Ozh 
    88Author URI: http://planetozh.com/ 
     
    4040   2.0.3 fixed: pattern to detect Google in referrers 
    4141   2.0.4 fixed: correctly detect "updated" Google asyn code (thanks Tobi @jaegerschnitzel) 
     42   2.0.5 fixed: correctly detect "updated" Google asyn code width & height (thanks Tobi @jaegerschnitzel) 
    4243*/ 
    4344 
     
    700701function wp_ozh_wsa_googlead_dimensions($code) { 
    701702    preg_match_all('/google_ad_(width|height) *= *([\d]+) *;/',strtolower($code),$matches); 
     703    if(empty($matches[0]) && empty($matches[1])) { 
     704        preg_match_all('/;(width|height) *:*([\d]+) *px/',strtolower($code),$matches); 
     705    } 
    702706    ${$matches[1][0]} = $matches[2][0]; 
    703707    ${$matches[1][1]} = $matches[2][1]; 
Note: See TracChangeset for help on using the changeset viewer.