WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/22/2011 12:02:31 PM (10 years ago)
Author:
duck_
Message:

Documentation fixes. See #18560.

  • Add missing parameters
  • Add missing @param data types
  • s/format_where/where_format/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r18714 r18753  
    556556     *
    557557     * @param string $prefix Alphanumeric name for the new prefix.
     558     * @param bool $set_table_names Optional. Whether the table names, e.g. wpdb::$posts, should be updated or not.
    558559     * @return string|WP_Error Old prefix or WP_Error on error
    559560     */
     
    727728     * @return null Always null.
    728729     */
    729     function select( $db, $dbh = null) {
     730    function select( $db, $dbh = null ) {
    730731        if ( is_null($dbh) )
    731732            $dbh = $this->dbh;
     
    11791180     * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data.
    11801181     *  A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
     1182     * @param string $type Optional. What type of operation is this? INSERT or REPLACE. Defaults to INSERT.
    11811183     * @return int|false The number of rows affected, or false on error.
    11821184     */
     
    12181220     * @param array|string $format Optional. An array of formats to be mapped to each of the values in $data. If string, that format will be used for all of the values in $data.
    12191221     *  A format is one of '%d', '%f', '%s' (integer, float, string). If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.
    1220      * @param array|string $format_where Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%f', '%s' (integer, float, string).  If omitted, all values in $where will be treated as strings.
     1222     * @param array|string $where_format Optional. An array of formats to be mapped to each of the values in $where. If string, that format will be used for all of the items in $where.  A format is one of '%d', '%f', '%s' (integer, float, string).  If omitted, all values in $where will be treated as strings.
    12211223     * @return int|false The number of rows updated, or false on error.
    12221224     */
Note: See TracChangeset for help on using the changeset viewer.