WordPress.org

Make WordPress Core

Changeset 26611


Ignore:
Timestamp:
12/04/13 16:55:58 (3 years ago)
Author:
nacin
Message:

Restore original properties of the right now (activity) and primary (news) dashboard widgets.

This avoids issues with those trying to remove/disable core meta boxes.

fixes #26392.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r26563 r26611  
    3838    // Right Now 
    3939    if ( is_blog_admin() && current_user_can('edit_posts') ) 
    40         wp_add_dashboard_widget( 'dash-right-now', __( 'Site Content' ), 'wp_dashboard_right_now' ); 
     40        wp_add_dashboard_widget( 'dashboard_right_now', __( 'Site Content' ), 'wp_dashboard_right_now' ); 
    4141 
    4242    if ( is_network_admin() ) 
     
    118118    if ( 'dashboard_browser_nag' === $widget_id ) 
    119119        $priority = 'high'; 
    120     elseif ( 'dashboard_primary' === $widget_id ) 
    121         $priority = 'low'; 
    122120 
    123121    add_meta_box( $widget_id, $widget_name, $callback, $screen, $location, $priority, $callback_args ); 
Note: See TracChangeset for help on using the changeset viewer.