Make WordPress Core


Ignore:
Timestamp:
05/01/2018 03:42:38 PM (6 years ago)
Author:
azaozz
Message:

Privacy: add "Mine" filter for media similarly to posts and comments.

Props audrasjb.
See #43820.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-media-list-table.php

    r42871 r43056  
    131131            );
    132132        }
     133
     134        $type_links['mine'] = sprintf(
     135            '<option value="mine"%s>%s</option>',
     136            selected( 'mine' === $filter, true, false ),
     137            __( 'Mine' )
     138        );
     139
    133140        return $type_links;
    134141    }
Note: See TracChangeset for help on using the changeset viewer.