mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Remove $post_type global usage from media list table. Correct $post_type to 'attachment' for upload screens. see #18722.
git-svn-id: https://develop.svn.wordpress.org/trunk@19385 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -490,6 +490,10 @@ final class WP_Screen {
|
||||
$taxonomy = 'post_tag';
|
||||
$id = 'edit-' . $taxonomy;
|
||||
break;
|
||||
case 'upload' :
|
||||
if ( null === $post_type )
|
||||
$post_type = 'attachment';
|
||||
break;
|
||||
}
|
||||
|
||||
if ( $is_network ) {
|
||||
|
||||
Reference in New Issue
Block a user