[wpmu-trac] [WordPress MU Trac] #933: Left over dashboard widget code

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Mar 20 21:05:16 GMT 2009


#933: Left over dashboard widget code
-------------------------+--------------------------------------------------
 Reporter:  chmac        |       Owner:  somebody
     Type:  enhancement  |      Status:  new     
 Priority:  low          |   Milestone:          
Component:  General      |     Version:          
 Severity:  normal       |    Keywords:          
-------------------------+--------------------------------------------------
 I think [source:branches/2.7/wp-admin/includes/dashboard.php@#L89 this] is
 left over from the 2.6 dashboard:

 {{{
         // Filter widget order
         $dashboard_widgets = apply_filters( 'wp_dashboard_widgets',
 array() );

         foreach ( $dashboard_widgets as $widget_id ) {
                 $name = empty(
 $wp_registered_widgets[$widget_id]['all_link'] ) ?
 $wp_registered_widgets[$widget_id]['name'] :
 $wp_registered_widgets[$widget_id]['name'] . " <a
 href='{$wp_registered_widgets[$widget_id]['all_link']}' class='edit-box
 open-box'>" . __('View all') . '</a>';
                 wp_add_dashboard_widget( $widget_id, $name,
 $wp_registered_widgets[$widget_id]['callback'],
 $wp_registered_widget_controls[$widget_id]['callback'] );
         }
 }}}

 I don't think it serves any purpose in this new dashboard because it uses
 the meta box code rather than the widget code.

 However, I might well be missing something... :)

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/933>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list