Make WordPress Core

Changeset 57858


Ignore:
Timestamp:
03/19/2024 06:03:00 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename the remaining $postid instances in wp_delete_post().

Follow-up to [57853], [57857].

See #60700.

File:
1 edited

Legend:

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

    r57857 r57858  
    35793579     * @since 6.6.0
    35803580     *
    3581      * @param int     $postid Post ID.
    3582      * @param WP_Post $post   Post object.
     3581     * @param int     $post_id Post ID.
     3582     * @param WP_Post $post    Post object.
    35833583     */
    3584     do_action( "delete_post_{$post->post_type}", $postid, $post );
     3584    do_action( "delete_post_{$post->post_type}", $post_id, $post );
    35853585
    35863586    /**
     
    36083608     * @since 6.6.0
    36093609     *
    3610      * @param int     $postid Post ID.
    3611      * @param WP_Post $post   Post object.
     3610     * @param int     $post_id Post ID.
     3611     * @param WP_Post $post    Post object.
    36123612     */
    3613     do_action( "deleted_post_{$post->post_type}", $postid, $post );
     3613    do_action( "deleted_post_{$post->post_type}", $post_id, $post );
    36143614
    36153615    /**
Note: See TracChangeset for help on using the changeset viewer.