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
This commit is contained in:
Pascal Birchler 2024-03-20 19:07:12 +00:00
parent 37ce09349a
commit d5f0448e78
2 changed files with 4 additions and 4 deletions

View File

@ -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
);

View File

@ -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.