Skip to content

Commit

Permalink
Coding Standards: Rename the remaining $postid instances in `wp_del…
Browse files Browse the repository at this point in the history
…ete_post()`.

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

See #60700.

git-svn-id: https://develop.svn.wordpress.org/trunk@57858 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 19, 2024
1 parent 4ab2e59 commit 6398a74
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -3578,10 +3578,10 @@ function wp_delete_post( $post_id = 0, $force_delete = false ) {
*
* @since 6.6.0
*
* @param int $postid Post ID.
* @param WP_Post $post Post object.
* @param int $post_id Post ID.
* @param WP_Post $post Post object.
*/
do_action( "delete_post_{$post->post_type}", $postid, $post );
do_action( "delete_post_{$post->post_type}", $post_id, $post );

/**
* Fires immediately before a post is deleted from the database.
Expand All @@ -3607,10 +3607,10 @@ function wp_delete_post( $post_id = 0, $force_delete = false ) {
*
* @since 6.6.0
*
* @param int $postid Post ID.
* @param WP_Post $post Post object.
* @param int $post_id Post ID.
* @param WP_Post $post Post object.
*/
do_action( "deleted_post_{$post->post_type}", $postid, $post );
do_action( "deleted_post_{$post->post_type}", $post_id, $post );

/**
* Fires immediately after a post is deleted from the database.
Expand Down

0 comments on commit 6398a74

Please sign in to comment.