Plugin Directory

Changeset 134175


Ignore:
Timestamp:
07/11/2009 02:31:58 PM (17 years ago)
Author:
alfaguru
Message:

""

Location:
side-content/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • side-content/trunk/readme.txt

    r95587 r134175  
    44Tags: widget, sidebar, page
    55Requires at least: 2.5
    6 Tested up to: 2.7
     6Tested up to: 2.8.1
    77Stable tag: trunk
    88
     
    2727
    2828Release 0.8 adds no new functionality but makes the plugin compatible with WP 2.7.
     29Release 0.9 adds no new functionality but makes the plugin compatible with WP 2.8.1.
    2930
    3031== Installation ==
  • side-content/trunk/side-content.php

    r81501 r134175  
    66Author: Alfred Armstrong, Likemind Web Services
    77
    8 Version: 0.8
     8Version: 0.9
    99Author URI: http://likemind.co.uk
    1010*/
     
    109109    foreach ($names as $name) {
    110110      $clean_name = sanitize_title_with_dashes($name);
    111       wp_register_sidebar_widget($name, $name, array($this, 'widget'), array('description'=>__('Side content widget').': '.$name, 'classname'=>$clean_name));
     111      // because wp_list_widgets forces the callback to be unique
     112      $func = create_function('$args', '{the_side_content()->widget($args);}');
     113      wp_register_sidebar_widget($name, $name, $func, array('description'=>__('Side content widget').': '.$name, 'classname'=>$clean_name));
    112114    }
    113115  }
Note: See TracChangeset for help on using the changeset viewer.