Changeset 40800
- Timestamp:
- 05/19/2017 06:28:58 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-screen.php
r40308 r40800 308 308 if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) ) 309 309 $post_type = 'post'; 310 break; 311 case 'upload': 312 $post_type = 'attachment'; 310 313 break; 311 314 } -
trunk/tests/phpunit/tests/admin/includesScreen.php
r38763 r40800 13 13 'edit-tags.php?taxonomy=post_tag' => array( 'base' => 'edit-tags', 'id' => 'edit-post_tag', 'post_type' => 'post', 'taxonomy' => 'post_tag' ), 14 14 'edit-tags.php?taxonomy=category' => array( 'base' => 'edit-tags', 'id' => 'edit-category', 'post_type' => 'post', 'taxonomy' => 'category' ), 15 'upload.php' => array( 'base' => 'upload', 'id' => 'upload' ),15 'upload.php' => array( 'base' => 'upload', 'id' => 'upload', 'post_type' => 'attachment' ), 16 16 'media-new.php' => array( 'action' => 'add', 'base' => 'media', 'id' => 'media' ), 17 17 'edit.php?post_type=page' => array( 'base' => 'edit', 'id' => 'edit-page', 'post_type' => 'page' ),
Note: See TracChangeset
for help on using the changeset viewer.