Make WordPress Core


Ignore:
Timestamp:
04/13/2016 04:17:10 PM (11 years ago)
Author:
boonebgorges
Message:

Pass thumbnail ID to the admin_post_thumbnail_html filter.

Also updates changelog to reflect that $post->ID was added in 3.5

Props johnjamesjacoby.
Fixes #36443.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r36926 r37196  
    14301430         *
    14311431         * @since 2.9.0
    1432          *
    1433          * @param string $content Admin post thumbnail HTML markup.
    1434          * @param int    $post_id Post ID.
     1432         * @since 3.5.0 Added $post->ID
     1433         * @since 4.6.0 Added $thumbnail_id
     1434         *
     1435         * @param string $content      Admin post thumbnail HTML markup.
     1436         * @param int    $post_id      Post ID.
     1437         * @param int    $thumbnail_id Thumbnail ID.
    14351438         */
    1436         return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID );
     1439        return apply_filters( 'admin_post_thumbnail_html', $content, $post->ID, $thumbnail_id );
    14371440}
    14381441
Note: See TracChangeset for help on using the changeset viewer.