Make WordPress Core

Ticket #62803: 62803.patch

File 62803.patch, 693 bytes (added by karthickmurugan, 2 months ago)

Patch file with updated comments

  • wp-includes/post.php

     
    858858 *
    859859 * @param int    $attachment_id Attachment ID.
    860860 * @param string $file          File path for the attachment.
    861  * @return bool True on success, false on failure.
     861 * @return int|bool Meta ID if the key didn't exist, true on success,
     862 *                  false on failure or if the value passed to the function
     863 *                  is the same as the one that is already in the database.
    862864 */
    863865function update_attached_file( $attachment_id, $file ) {
    864866        if ( ! get_post( $attachment_id ) ) {