From 31039a896fd4a769e18fd9435d1312b45e749bb9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 19 Mar 2024 18:04:15 +0000 Subject: [PATCH] Coding Standards: Rename the remaining `$postid` instances in `wp_delete_post()`. Follow-up to [57853], [57857]. See #60700. Built from https://develop.svn.wordpress.org/trunk@57858 git-svn-id: http://core.svn.wordpress.org/trunk@57359 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 932163190c..9c662aaa24 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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. @@ -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. diff --git a/wp-includes/version.php b/wp-includes/version.php index 41f231c81c..27040bdc2b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57857'; +$wp_version = '6.6-alpha-57858'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.