mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 06:40:25 +00:00
Docs: A host of corrections and improvements to inline documentation.
See #57840 git-svn-id: https://develop.svn.wordpress.org/trunk@55732 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1437,12 +1437,12 @@ class wpdb {
|
||||
/**
|
||||
* Prepares a SQL query for safe execution.
|
||||
*
|
||||
* Uses sprintf()-like syntax. The following placeholders can be used in the query string:
|
||||
* Uses `sprintf()`-like syntax. The following placeholders can be used in the query string:
|
||||
*
|
||||
* - %d (integer)
|
||||
* - %f (float)
|
||||
* - %s (string)
|
||||
* - %i (identifier, e.g. table/field names)
|
||||
* - `%d` (integer)
|
||||
* - `%f` (float)
|
||||
* - `%s` (string)
|
||||
* - `%i` (identifier, e.g. table/field names)
|
||||
*
|
||||
* All placeholders MUST be left unquoted in the query string. A corresponding argument
|
||||
* MUST be passed for each placeholder.
|
||||
@@ -1477,12 +1477,12 @@ class wpdb {
|
||||
* from `$args` to `...$args`.
|
||||
* @since 6.2.0 Added `%i` for identifiers, e.g. table or field names.
|
||||
* Check support via `wpdb::has_cap( 'identifier_placeholders' )`.
|
||||
* This preserves compatibility with sprintf(), as the C version uses
|
||||
* This preserves compatibility with `sprintf()`, as the C version uses
|
||||
* `%d` and `$i` as a signed integer, whereas PHP only supports `%d`.
|
||||
*
|
||||
* @link https://www.php.net/sprintf Description of syntax.
|
||||
*
|
||||
* @param string $query Query statement with sprintf()-like placeholders.
|
||||
* @param string $query Query statement with `sprintf()`-like placeholders.
|
||||
* @param array|mixed $args The array of variables to substitute into the query's placeholders
|
||||
* if being called with an array of arguments, or the first variable
|
||||
* to substitute into the query's placeholders if being called with
|
||||
@@ -3319,6 +3319,7 @@ class wpdb {
|
||||
*
|
||||
* @type int $length The column length.
|
||||
* @type string $type One of 'byte' or 'char'.
|
||||
* }
|
||||
*/
|
||||
public function get_col_length( $table, $column ) {
|
||||
$tablekey = strtolower( $table );
|
||||
|
||||
Reference in New Issue
Block a user