Make WordPress Core

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


Ignore:
Timestamp:
01/27/2023 11:10:57 PM (4 years ago)
Author:
azaozz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41977, comment 6

    initial v1  
    99WP adds context to images and other uploads by saving the post they were uploaded to. This context can be used for many things like permission settings, etc.
    1010
    11 Imho would be nice to remind developers to add the post_ID for new uploads if possible.
     11Imho would be nice to remind developers to add the post_ID for new uploads if possible. Perhaps this ticket can be repurposed to expand the docs for `media_handle_upload()` and explain in more details why it is good to add `$post_id` when possible.