Make WordPress Core


Ignore:
Timestamp:
05/08/2023 10:35:38 PM (21 months ago)
Author:
johnbillion
Message:

Docs: A host of corrections and improvements to inline documentation.

See #57840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wpdb.php

    r55694 r55732  
    14381438     * Prepares a SQL query for safe execution.
    14391439     *
    1440      * Uses sprintf()-like syntax. The following placeholders can be used in the query string:
    1441      *
    1442      * - %d (integer)
    1443      * - %f (float)
    1444      * - %s (string)
    1445      * - %i (identifier, e.g. table/field names)
     1440     * Uses `sprintf()`-like syntax. The following placeholders can be used in the query string:
     1441     *
     1442     * - `%d` (integer)
     1443     * - `%f` (float)
     1444     * - `%s` (string)
     1445     * - `%i` (identifier, e.g. table/field names)
    14461446     *
    14471447     * All placeholders MUST be left unquoted in the query string. A corresponding argument
     
    14781478     * @since 6.2.0 Added `%i` for identifiers, e.g. table or field names.
    14791479     *              Check support via `wpdb::has_cap( 'identifier_placeholders' )`.
    1480      *              This preserves compatibility with sprintf(), as the C version uses
     1480     *              This preserves compatibility with `sprintf()`, as the C version uses
    14811481     *              `%d` and `$i` as a signed integer, whereas PHP only supports `%d`.
    14821482     *
    14831483     * @link https://www.php.net/sprintf Description of syntax.
    14841484     *
    1485      * @param string      $query   Query statement with sprintf()-like placeholders.
     1485     * @param string      $query   Query statement with `sprintf()`-like placeholders.
    14861486     * @param array|mixed $args    The array of variables to substitute into the query's placeholders
    14871487     *                             if being called with an array of arguments, or the first variable
     
    33203320     *     @type int    $length The column length.
    33213321     *     @type string $type   One of 'byte' or 'char'.
     3322     * }
    33223323     */
    33233324    public function get_col_length( $table, $column ) {
Note: See TracChangeset for help on using the changeset viewer.