Changeset 134175
- Timestamp:
- 07/11/2009 02:31:58 PM (17 years ago)
- Location:
- side-content/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
side-content.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
side-content/trunk/readme.txt
r95587 r134175 4 4 Tags: widget, sidebar, page 5 5 Requires at least: 2.5 6 Tested up to: 2. 76 Tested up to: 2.8.1 7 7 Stable tag: trunk 8 8 … … 27 27 28 28 Release 0.8 adds no new functionality but makes the plugin compatible with WP 2.7. 29 Release 0.9 adds no new functionality but makes the plugin compatible with WP 2.8.1. 29 30 30 31 == Installation == -
side-content/trunk/side-content.php
r81501 r134175 6 6 Author: Alfred Armstrong, Likemind Web Services 7 7 8 Version: 0. 88 Version: 0.9 9 9 Author URI: http://likemind.co.uk 10 10 */ … … 109 109 foreach ($names as $name) { 110 110 $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)); 112 114 } 113 115 }
Note: See TracChangeset
for help on using the changeset viewer.