Make WordPress Core


Ignore:
Timestamp:
04/27/2023 11:13:36 PM (2 years ago)
Author:
johnbillion
Message:

Docs: All sorts of improvements and corrections to function and hook docs.

See #57840

File:
1 edited

Legend:

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

    r55431 r55694  
    25572557     * @param string       $table  Table name.
    25582558     * @param array        $data   Data to insert (in column => value pairs).
    2559      *                             Both $data columns and $data values should be "raw" (neither should be SQL escaped).
     2559     *                             Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped).
    25602560     *                             Sending a null value will cause the column to be set to NULL - the corresponding
    25612561     *                             format is ignored in this case.
    2562      * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.
    2563      *                             If string, that format will be used for all of the values in $data.
     2562     * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`.
     2563     *                             If string, that format will be used for all of the values in `$data`.
    25642564     *                             A format is one of '%d', '%f', '%s' (integer, float, string).
    2565      *                             If omitted, all values in $data will be treated as strings unless otherwise
     2565     *                             If omitted, all values in `$data` will be treated as strings unless otherwise
    25662566     *                             specified in wpdb::$field_types. Default null.
    25672567     * @return int|false The number of rows inserted, or false on error.
     
    25872587     * @param string       $table  Table name.
    25882588     * @param array        $data   Data to insert (in column => value pairs).
    2589      *                             Both $data columns and $data values should be "raw" (neither should be SQL escaped).
     2589     *                             Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped).
    25902590     *                             Sending a null value will cause the column to be set to NULL - the corresponding
    25912591     *                             format is ignored in this case.
    2592      * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.
    2593      *                             If string, that format will be used for all of the values in $data.
     2592     * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`.
     2593     *                             If string, that format will be used for all of the values in `$data`.
    25942594     *                             A format is one of '%d', '%f', '%s' (integer, float, string).
    2595      *                             If omitted, all values in $data will be treated as strings unless otherwise
     2595     *                             If omitted, all values in `$data` will be treated as strings unless otherwise
    25962596     *                             specified in wpdb::$field_types. Default null.
    25972597     * @return int|false The number of rows affected, or false on error.
     
    26042604     * Helper function for insert and replace.
    26052605     *
    2606      * Runs an insert or replace query based on $type argument.
     2606     * Runs an insert or replace query based on `$type` argument.
    26072607     *
    26082608     * @since 3.0.0
     
    26142614     * @param string       $table  Table name.
    26152615     * @param array        $data   Data to insert (in column => value pairs).
    2616      *                             Both $data columns and $data values should be "raw" (neither should be SQL escaped).
     2616     *                             Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped).
    26172617     *                             Sending a null value will cause the column to be set to NULL - the corresponding
    26182618     *                             format is ignored in this case.
    2619      * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.
    2620      *                             If string, that format will be used for all of the values in $data.
     2619     * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`.
     2620     *                             If string, that format will be used for all of the values in `$data`.
    26212621     *                             A format is one of '%d', '%f', '%s' (integer, float, string).
    2622      *                             If omitted, all values in $data will be treated as strings unless otherwise
     2622     *                             If omitted, all values in `$data` will be treated as strings unless otherwise
    26232623     *                             specified in wpdb::$field_types. Default null.
    2624      * @param string       $type   Optional. Type of operation. Possible values include 'INSERT' or 'REPLACE'.
     2624     * @param string       $type   Optional. Type of operation. Either 'INSERT' or 'REPLACE'.
    26252625     *                             Default 'INSERT'.
    26262626     * @return int|false The number of rows affected, or false on error.
Note: See TracChangeset for help on using the changeset viewer.