WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16830, comment 6


Ignore:
Timestamp:
08/17/2013 09:25:48 PM (8 years ago)
Author:
MikeSchinkel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16830, comment 6

    initial v1  
    44One reason you mention is attachment meta data.
    55
    6 Further, most ''(all?)'' of the `wp_get_attachment()` functions expect an attachment post ID, so I can very much see how this would be useful for more advanced WordPress development, for example to parse URLs out of user entered content to match up with attachments or to parse the URL out of a feed for a site that has its database on the same MySQL server as the site with running, and to determine it's ID in the other site's database ''(we are doing both of these on my current project.)''
     6Further, most ''(all?)'' of the `wp_get_attachment()` functions expect an attachment post ID, so I can very much see how this would be useful for more advanced WordPress development, for example to parse URLs out of user entered content to match up with attachments or to parse the URL out of a feed for a site that has its database on the same MySQL server as the site with running, and to determine it's ID in the other site's database.
     7
     8''(We are doing both of these on my current project.)''
    79
    810However, the implementation of this function needs to be more complex than to just check against the `guid` because that can fail.