Make WordPress Core


Ignore:
Timestamp:
09/17/2015 02:29:22 AM (9 years ago)
Author:
wonderboymusic
Message:

Media List Table: remove the counts from the "views" portion of the toolbar, which are inconsistent with grid view. Also reduces complexity and removes potentially expensive count query.

Related to the toolbar view, remove the wp_admin_canonical_url() action in grid mode. Grid views that result from links from the list table view are lenses into the library and need to be indicated as such vs being a full attachment query.

Fixes #29744.

File:
1 edited

Legend:

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

    r33435 r34256  
    2525    wp_enqueue_script( 'media-grid' );
    2626    wp_enqueue_script( 'media' );
     27
     28    remove_action( 'admin_head', 'wp_admin_canonical_url' );
    2729
    2830    $q = $_GET;
Note: See TracChangeset for help on using the changeset viewer.