diff -r f507feede89a -r 09a1c134465b web/wp-admin/includes/class-wp-list-table.php --- a/web/wp-admin/includes/class-wp-list-table.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-admin/includes/class-wp-list-table.php Wed Dec 19 17:46:52 2012 -0800 @@ -81,15 +81,16 @@ $args = wp_parse_args( $args, array( 'plural' => '', 'singular' => '', - 'ajax' => false + 'ajax' => false, + 'screen' => null, ) ); - $screen = get_current_screen(); + $this->screen = convert_to_screen( $args['screen'] ); - add_filter( "manage_{$screen->id}_columns", array( &$this, 'get_columns' ), 0 ); + add_filter( "manage_{$this->screen->id}_columns", array( &$this, 'get_columns' ), 0 ); if ( !$args['plural'] ) - $args['plural'] = $screen->base; + $args['plural'] = $this->screen->base; $args['plural'] = sanitize_key( $args['plural'] ); $args['singular'] = sanitize_key( $args['singular'] ); @@ -209,6 +210,10 @@ echo ''; if ( ! empty( $_REQUEST['order'] ) ) echo ''; + if ( ! empty( $_REQUEST['post_mime_type'] ) ) + echo ''; + if ( ! empty( $_REQUEST['detached'] ) ) + echo ''; ?>
- bulk_actions( $which ); ?> + bulk_actions(); ?>
extra_tablenav( $which ); @@ -903,13 +907,11 @@ * @access private */ function _js_vars() { - $current_screen = get_current_screen(); - $args = array( 'class' => get_class( $this ), 'screen' => array( - 'id' => $current_screen->id, - 'base' => $current_screen->base, + 'id' => $this->screen->id, + 'base' => $this->screen->base, ) );