mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1191,7 +1191,7 @@ class wpdb {
|
||||
* @see wp_set_wpdb_vars()
|
||||
*
|
||||
* @param string $table table name
|
||||
* @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped).
|
||||
* @param array $data Data to insert (in column => value pairs). Both $data columns and $data values should be "raw" (neither should be SQL escaped).
|
||||
* @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.
|
||||
* 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.
|
||||
* @param string $type Optional. What type of operation is this? INSERT or REPLACE. Defaults to INSERT.
|
||||
@@ -1234,7 +1234,7 @@ class wpdb {
|
||||
* @param array $where A named array of WHERE clauses (in column => value pairs). Multiple clauses will be joined with ANDs. Both $where columns and $where values should be "raw".
|
||||
* @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.
|
||||
* 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.
|
||||
* @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.
|
||||
* @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.
|
||||
* @return int|false The number of rows updated, or false on error.
|
||||
*/
|
||||
function update( $table, $data, $where, $format = null, $where_format = null ) {
|
||||
@@ -1278,8 +1278,8 @@ class wpdb {
|
||||
* @since 0.71
|
||||
*
|
||||
* @param string|null $query Optional. SQL query. Defaults to null, use the result from the previous query.
|
||||
* @param int $x Optional. Column of value to return. Indexed from 0.
|
||||
* @param int $y Optional. Row of value to return. Indexed from 0.
|
||||
* @param int $x Optional. Column of value to return. Indexed from 0.
|
||||
* @param int $y Optional. Row of value to return. Indexed from 0.
|
||||
* @return string|null Database query result (as string), or null on failure
|
||||
*/
|
||||
function get_var( $query = null, $x = 0, $y = 0 ) {
|
||||
@@ -1365,7 +1365,7 @@ class wpdb {
|
||||
* @param string $query SQL query.
|
||||
* @param string $output Optional. Any of ARRAY_A | ARRAY_N | OBJECT | OBJECT_K constants. With one of the first three, return an array of rows indexed from 0 by SQL result row number.
|
||||
* Each row is an associative array (column => value, ...), a numerically indexed array (0 => value, ...), or an object. ( ->column = value ), respectively.
|
||||
* With OBJECT_K, return an associative array of row objects keyed by the value of each row's first column's value. Duplicate keys are discarded.
|
||||
* With OBJECT_K, return an associative array of row objects keyed by the value of each row's first column's value. Duplicate keys are discarded.
|
||||
* @return mixed Database query results
|
||||
*/
|
||||
function get_results( $query = null, $output = OBJECT ) {
|
||||
|
||||
Reference in New Issue
Block a user