Make WordPress Core


Ignore:
Timestamp:
10/19/2011 09:43:02 PM (14 years ago)
Author:
ryan
Message:

Update meta box functions to handle WP_Screen objects and pass objects instead of IDs to them in core files. Allow passing emptiness to get the current screen. see #18958

File:
1 edited

Legend:

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

    r19009 r19013  
    177177        $priority = 'high';
    178178
    179     add_meta_box( $widget_id, $widget_name, $callback, $screen->id, $location, $priority );
     179    add_meta_box( $widget_id, $widget_name, $callback, $screen, $location, $priority );
    180180}
    181181
Note: See TracChangeset for help on using the changeset viewer.