From d5f0448e7835ac76993adc3d93ff21405b71d2e9 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 20 Mar 2024 19:07:12 +0000 Subject: [PATCH] Coding Standards: Rename the `$postid` parameter to `$post_id` in `has_meta(). Props mujuonly. Fixes #60810. See #60700. Built from https://develop.svn.wordpress.org/trunk@57860 git-svn-id: http://core.svn.wordpress.org/trunk@57361 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index a31332426b..63f479d140 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1084,7 +1084,7 @@ function get_post_meta_by_id( $mid ) { * * @global wpdb $wpdb WordPress database abstraction object. * - * @param int $postid A post ID. + * @param int $post_id A post ID. * @return array[] { * Array of meta data arrays for the given post ID. * @@ -1098,7 +1098,7 @@ function get_post_meta_by_id( $mid ) { * } * } */ -function has_meta( $postid ) { +function has_meta( $post_id ) { global $wpdb; return $wpdb->get_results( @@ -1106,7 +1106,7 @@ function has_meta( $postid ) { "SELECT meta_key, meta_value, meta_id, post_id FROM $wpdb->postmeta WHERE post_id = %d ORDER BY meta_key,meta_id", - $postid + $post_id ), ARRAY_A ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 752c201daf..9a3c9dc530 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57859'; +$wp_version = '6.6-alpha-57860'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.