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
This commit is contained in:
Sergey Biryukov 2024-03-19 18:04:15 +00:00
parent f09287b6e1
commit 31039a896f
2 changed files with 7 additions and 7 deletions

View File

@ -3578,10 +3578,10 @@ function wp_delete_post( $post_id = 0, $force_delete = false ) {
* *
* @since 6.6.0 * @since 6.6.0
* *
* @param int $postid Post ID. * @param int $post_id Post ID.
* @param WP_Post $post Post object. * @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. * 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 * @since 6.6.0
* *
* @param int $postid Post ID. * @param int $post_id Post ID.
* @param WP_Post $post Post object. * @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. * Fires immediately after a post is deleted from the database.

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.