Make WordPress Core

Ticket #14696: 14696.3.diff

File 14696.3.diff, 684 bytes (added by PeteMall, 14 years ago)

Add hooks for user dashboard widgets.

  • wp-admin/includes/dashboard.php

     
    104104        if ( is_network_admin() ) {
    105105                do_action( 'wp_network_dashboard_setup' );
    106106                $dashboard_widgets = apply_filters( 'wp_network_dashboard_widgets', array() );
    107         } else {
     107        } else if ( is_user_admin() ) {
     108                do_action( 'wp_user_dashboard_setup' );
     109                $dashboard_widgets = apply_filters( 'wp_user_dashboard_widgets', array() );             
     110        } else
    108111                do_action( 'wp_dashboard_setup' );
    109112                $dashboard_widgets = apply_filters( 'wp_dashboard_widgets', array() );
    110113        }