[wp-trac] [WordPress Trac] #54965: Custom post type set as not public breaks media uploader functionality

WordPress Trac noreply at wordpress.org
Fri Jan 28 01:49:18 UTC 2022


#54965: Custom post type set as not public breaks media uploader functionality
--------------------------+-----------------------------
 Reporter:  catacaustic   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  5.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In 5.9 having a custom post type that is not public disables the media
 uploader option to select media files for 'Uploaded to this post' and does
 not attach any uploaded media files to that post.

 Setting the values for either 'public' or 'publicly_queryable' to false
 when using register_post_type() causes this problem. If the values are set
 to true then the media uploader works as expected.

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


More information about the wp-trac mailing list