[wp-trac] [WordPress Trac] #52326: `get_post_status()` is can be incrorrect for attachments.

WordPress Trac noreply at wordpress.org
Wed Jan 20 04:44:55 UTC 2021


#52326: `get_post_status()` is can be incrorrect for attachments.
-------------------------------------------------+-------------------------
 Reporter:  peterwilsoncc                        |       Owner:
                                                 |  peterwilsoncc
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.7
Component:  Media                                |     Version:  2.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-unit-tests has-patch needs-dev-  |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 > `// Attachment permitted statuses: 'inherit', , see wp_insert_post().`

 Did this list mean to include something other than `inherit`? I assume
 `publish`, but wanted to double-check :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52326#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list