[wp-trac] [WordPress Trac] #27439: Warning on WP Media List Table when Custom Post Type No Longer Active

WordPress Trac noreply at wordpress.org
Mon Mar 17 14:41:34 UTC 2014


#27439: Warning on WP Media List Table when Custom Post Type No Longer Active
----------------------------+-----------------------------
 Reporter:  wpsmith         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Currently, with a custom post type that no longer exists, a Media object
 that is attached to a post in that custom post type throws a warning.
 [http://images.wpsmith.net/screenshots/wpsmith-7cCDwVP7g.png Screenshot]

 To Repeat Warning:
 1. Create a custom post type via functions.php or a plugin.
 2. Create a new post
 3. Upload an image to that custom post type as a featured image
 4. Comment custom post type code in functions.php or deactivate plugin.
 5. Go to Media Library (domain.com/wp-admin/upload.php)
 You will see the warning in the '''Uploaded to''' column.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27439>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list