[wp-trac] [WordPress Trac] #8858: register widgets in admin panel descriptions are not shown

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 14 17:47:30 GMT 2009


#8858: register widgets in admin panel descriptions are not shown
----------------------------+-----------------------------------------------
 Reporter:  dsalon          |       Owner:  anonymous             
     Type:  defect (bug)    |      Status:  new                   
 Priority:  normal          |   Milestone:  2.8                   
Component:  Administration  |     Version:                        
 Severity:  normal          |    Keywords:  widgets administration
----------------------------+-----------------------------------------------
 The first lines of function register_sidebar_widget in widgets.php reads
 as follows:

 function register_sidebar_widget($name, $output_callback, $classname = '')
 {
         // Compat
         if ( is_array($name) ) {
                 if ( count($name) == 3 )
                         $name = sprintf($name[0], $name[2]);
                 else
                         $name = $name[0];
         }

         $id = sanitize_title($name);

         $options = array();
 ...

 I believe that the correct function should read:

 function register_sidebar_widget($name, $output_callback, $classname = '',
 $options = array() ) {
         // Compat
         if ( is_array($name) ) {
                 if ( count($name) == 3 )
                         $name = sprintf($name[0], $name[2]);
                 else
                         $name = $name[0];
         }

         $id = sanitize_title($name);
 //      $options = array();
 ...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8858>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list