Make WordPress Core

Changeset 57860


Ignore:
Timestamp:
03/20/2024 07:05:04 PM (2 months ago)
Author:
swissspidy
Message:

Coding Standards: Rename the $postid parameter to $post_id in `has_meta().

Props mujuonly.
Fixes #60810.
See #60700.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r57580 r57860  
    10851085 * @global wpdb $wpdb WordPress database abstraction object.
    10861086 *
    1087  * @param int $postid A post ID.
     1087 * @param int $post_id A post ID.
    10881088 * @return array[] {
    10891089 *     Array of meta data arrays for the given post ID.
     
    10991099 * }
    11001100 */
    1101 function has_meta( $postid ) {
     1101function has_meta( $post_id ) {
    11021102    global $wpdb;
    11031103
     
    11071107            FROM $wpdb->postmeta WHERE post_id = %d
    11081108            ORDER BY meta_key,meta_id",
    1109             $postid
     1109            $post_id
    11101110        ),
    11111111        ARRAY_A
Note: See TracChangeset for help on using the changeset viewer.