Make WordPress Core

Ticket #31099: 31099_Docs.patch

File 31099_Docs.patch, 607 bytes (added by Idealien, 12 years ago)

Update to docs of {$old_status}_to_{$new_status}

  • src/wp-includes/post.php

     
    39653965         *
    39663966         * The dynamic portions of the hook name, `$new_status` and `$post->post_type`,
    39673967         * refer to the new post status and post type, respectively.
     3968         *
     3969         * publish_{$post->type} fires on first publish and subsequent updates.
     3970         * If you are looking to only fire a callback when $post->post_type is first
     3971         * published, use transition_post_status instead.
    39683972         *
    39693973         * @since 2.3.0
    39703974         *