Opened 12 months ago
#20725 new enhancement
Media library inconsistency
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | 3.3.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I need to put extra filters using restrict_manage_posts to Media library and i have noticed, that my filters did not appear on Media library iframe, opened when adding new media in post. It is handled with wp-admin/includes/media.php via media_upload_library_form function, which seems to be very old comparing to media library in class-wp-media-list-table
e.g. it does not use $this->months_dropdown( 'attachment' ); but wrotes 25 rows of code which do the same.
IMO it could be migrated to the new code
also it misses the
do_action( 'restrict_manage_posts' );
line, which is important for my desired functionality (when i hardcode it there, it works)
