Changes between Initial Version and Version 1 of Ticket #20948, comment 2

Timestamp:
06/14/12 11:45:42 (12 months ago)
Author:
jfarthing84
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20948, comment 2

    initial v1  
    1 Well, I have a custom post type for user uploads. This post type should be treated exactly like an attachment. I want all attachment functions (such as the one being discussed) to work for it. 
     1Well, I have a custom post type for user uploads. This post type should be treated exactly like an attachment. As far as I can tell so far, wp_get_attachment_url is the only "media" function that does this check, and it hinders other functions from working on a post type other than "attachment" (like image_downsize). 
    22 
    33Why don't I just use the attachment post type? Well, there's a few reasons for that. The main reason is because you can't assign any post status to an attachment. WordPress forces it to be "inherit" or "private".