Make WordPress Core

Ticket #36180: 36180.patch

File 36180.patch, 810 bytes (added by sebastian.pisula, 9 years ago)
  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    40104010         * transitioned to a status, use the {@see 'transition_post_status'} hook instead.
    40114011         *
    40124012         * @since 2.3.0
     4013         * @since 4.5.0 The `$old_status` parameter was added.
    40134014         *
    40144015         * @param int     $post_id Post ID.
    40154016         * @param WP_Post $post    Post object.
     4017         * @param string  $old_status Old post status.
    40164018         */
    4017         do_action( "{$new_status}_{$post->post_type}", $post->ID, $post );
     4019        do_action( "{$new_status}_{$post->post_type}", $post->ID, $post, $old_status );
    40184020}
    40194021
    40204022//