WordPress.org

Plugin Directory

Changeset 377789


Ignore:
Timestamp:
04/27/11 09:59:40 (3 years ago)
Author:
madeinthayaland
Message:

Fixing hiding feature again

Location:
buy-sell-ads/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • buy-sell-ads/trunk/buy-sell-ads.php

    r376765 r377789  
    263263      preg_match('/^_bsap.interpret_json\((.*)\);$/', $zones_info, $matches); 
    264264      $data = json_decode($matches[1], true); 
    265       $bsa_options['zones'] = $data['zones']; 
     265      $zones = array(); 
     266      foreach ($data['zones'] as $zone) { 
     267        $zones[$zone['id']] = $zone; 
     268      } 
     269      $bsa_options['zones'] = $zones; 
    266270      $defaults = $this->get_default_options(); 
    267271      foreach ($bsa_options['zones'] as $k => $v) { 
  • buy-sell-ads/trunk/readme.txt

    r376765 r377789  
    55Requires at least: 2.8 
    66Tested up to: 3.1.1 
    7 Stable Tag: 1.1.1 
     7Stable Tag: 1.1.2 
    88 
    99This plugin helps you easily integrate Buy Sell Ads with anti-AdBlock measures. 
     
    4040 
    4141== Changelog == 
     42 
     43= 1.1.2 = 
     44* Another hiding feature fix. 
    4245 
    4346= 1.1.1 = 
  • buy-sell-ads/trunk/widget-zone.class.php

    r376765 r377789  
    2626 
    2727    // should we show widget code if no ads are filled in this zone? 
    28     if ($bsa_options['hide_empty_widget'] && count($zone['filters']) == 0) { 
     28    if ($bsa_options['hide_empty_widget'] && count($bsa_options['zones'][$zone]['filters']) == 0) { 
    2929      $should_show = false; 
    3030    } else { 
Note: See TracChangeset for help on using the changeset viewer.