WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22556, comment 10


Ignore:
Timestamp:
12/19/12 20:08:06 (2 years ago)
Author:
jfarthing84
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22556, comment 10

    initial v1  
    11Just encountered this myself. It seems to me the best approach would be to treat attachments more like regular post types, in that all post statuses should be available to them as well. That way, if it's status is set to inherit, we can assume to check the parent for it's status. Likewise, if it is set as publish, treat it as it's own post - no need to do the status join. 
     2 
     3Also, this would assign regular permalinks for those "unattached" (publish) attachments or the current (based on post parent) style permalinks for "attached" (inherit) attachments.