diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php
index b1c6ddf52b..be7d9c062f 100644
|
a
|
b
|
|
| 6 | 6 | * |
| 7 | 7 | * @package WordPress |
| 8 | 8 | * @subpackage Database |
| 9 | | * @since 0.71 |
| | 9 | * @since 0.71.0 |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | | * @since 0.71 |
| | 13 | * @since 0.71.0 |
| 14 | 14 | */ |
| 15 | 15 | define( 'EZSQL_VERSION', 'WP1.25' ); |
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | | * @since 0.71 |
| | 18 | * @since 0.71.0 |
| 19 | 19 | */ |
| 20 | 20 | define( 'OBJECT', 'OBJECT' ); |
| 21 | 21 | // phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase |
| … |
… |
define( 'object', 'OBJECT' ); // Back compat.
|
| 27 | 27 | define( 'OBJECT_K', 'OBJECT_K' ); |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | | * @since 0.71 |
| | 30 | * @since 0.71.0 |
| 31 | 31 | */ |
| 32 | 32 | define( 'ARRAY_A', 'ARRAY_A' ); |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | | * @since 0.71 |
| | 35 | * @since 0.71.0 |
| 36 | 36 | */ |
| 37 | 37 | define( 'ARRAY_N', 'ARRAY_N' ); |
| 38 | 38 | |
| … |
… |
define( 'ARRAY_N', 'ARRAY_N' );
|
| 46 | 46 | * |
| 47 | 47 | * @link https://codex.wordpress.org/Function_Reference/wpdb_Class |
| 48 | 48 | * |
| 49 | | * @since 0.71 |
| | 49 | * @since 0.71.0 |
| 50 | 50 | */ |
| 51 | 51 | class wpdb { |
| 52 | 52 | |
| … |
… |
class wpdb {
|
| 56 | 56 | * Default behavior is to show errors if both WP_DEBUG and WP_DEBUG_DISPLAY |
| 57 | 57 | * evaluated to true. |
| 58 | 58 | * |
| 59 | | * @since 0.71 |
| | 59 | * @since 0.71.0 |
| 60 | 60 | * @var bool |
| 61 | 61 | */ |
| 62 | 62 | var $show_errors = false; |
| … |
… |
class wpdb {
|
| 88 | 88 | /** |
| 89 | 89 | * Count of rows returned by previous query |
| 90 | 90 | * |
| 91 | | * @since 0.71 |
| | 91 | * @since 0.71.0 |
| 92 | 92 | * @var int |
| 93 | 93 | */ |
| 94 | 94 | public $num_rows = 0; |
| … |
… |
class wpdb {
|
| 96 | 96 | /** |
| 97 | 97 | * Count of affected rows by previous query |
| 98 | 98 | * |
| 99 | | * @since 0.71 |
| | 99 | * @since 0.71.0 |
| 100 | 100 | * @var int |
| 101 | 101 | */ |
| 102 | 102 | var $rows_affected = 0; |
| … |
… |
class wpdb {
|
| 104 | 104 | /** |
| 105 | 105 | * The ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT). |
| 106 | 106 | * |
| 107 | | * @since 0.71 |
| | 107 | * @since 0.71.0 |
| 108 | 108 | * @var int |
| 109 | 109 | */ |
| 110 | 110 | public $insert_id = 0; |
| … |
… |
class wpdb {
|
| 112 | 112 | /** |
| 113 | 113 | * Last query made |
| 114 | 114 | * |
| 115 | | * @since 0.71 |
| | 115 | * @since 0.71.0 |
| 116 | 116 | * @var array |
| 117 | 117 | */ |
| 118 | 118 | var $last_query; |
| … |
… |
class wpdb {
|
| 120 | 120 | /** |
| 121 | 121 | * Results of the last query made |
| 122 | 122 | * |
| 123 | | * @since 0.71 |
| | 123 | * @since 0.71.0 |
| 124 | 124 | * @var array|null |
| 125 | 125 | */ |
| 126 | 126 | var $last_result; |
| … |
… |
class wpdb {
|
| 128 | 128 | /** |
| 129 | 129 | * MySQL result, which is either a resource or boolean. |
| 130 | 130 | * |
| 131 | | * @since 0.71 |
| | 131 | * @since 0.71.0 |
| 132 | 132 | * @var mixed |
| 133 | 133 | */ |
| 134 | 134 | protected $result; |
| … |
… |
class wpdb {
|
| 169 | 169 | /** |
| 170 | 170 | * Saved info on the table column |
| 171 | 171 | * |
| 172 | | * @since 0.71 |
| | 172 | * @since 0.71.0 |
| 173 | 173 | * @var array |
| 174 | 174 | */ |
| 175 | 175 | protected $col_info; |
| … |
… |
class wpdb {
|
| 537 | 537 | /** |
| 538 | 538 | * Database Handle |
| 539 | 539 | * |
| 540 | | * @since 0.71 |
| | 540 | * @since 0.71.0 |
| 541 | 541 | * @var string |
| 542 | 542 | */ |
| 543 | 543 | protected $dbh; |
| … |
… |
class wpdb {
|
| 1079 | 1079 | * The database name will be changed based on the current database |
| 1080 | 1080 | * connection. On failure, the execution will bail and display an DB error. |
| 1081 | 1081 | * |
| 1082 | | * @since 0.71 |
| | 1082 | * @since 0.71.0 |
| 1083 | 1083 | * |
| 1084 | 1084 | * @param string $db MySQL database name |
| 1085 | 1085 | * @param resource|null $dbh Optional link identifier. |
| … |
… |
class wpdb {
|
| 1217 | 1217 | * |
| 1218 | 1218 | * Use esc_sql() or wpdb::prepare() instead. |
| 1219 | 1219 | * |
| 1220 | | * @since 0.71 |
| | 1220 | * @since 0.71.0 |
| 1221 | 1221 | * @deprecated 3.6.0 Use wpdb::prepare() |
| 1222 | 1222 | * @see wpdb::prepare() |
| 1223 | 1223 | * @see esc_sql() |
| … |
… |
class wpdb {
|
| 1411 | 1411 | /** |
| 1412 | 1412 | * Print SQL/DB error. |
| 1413 | 1413 | * |
| 1414 | | * @since 0.71 |
| | 1414 | * @since 0.71.0 |
| 1415 | 1415 | * @global array $EZSQL_ERROR Stores error information of query and error string |
| 1416 | 1416 | * |
| 1417 | 1417 | * @param string $str The error to display |
| … |
… |
class wpdb {
|
| 1489 | 1489 | * this function can be used to enable and disable showing of database |
| 1490 | 1490 | * errors. |
| 1491 | 1491 | * |
| 1492 | | * @since 0.71 |
| | 1492 | * @since 0.71.0 |
| 1493 | 1493 | * @see wpdb::hide_errors() |
| 1494 | 1494 | * |
| 1495 | 1495 | * @param bool $show Whether to show or hide errors |
| … |
… |
class wpdb {
|
| 1506 | 1506 | * |
| 1507 | 1507 | * By default database errors are not shown. |
| 1508 | 1508 | * |
| 1509 | | * @since 0.71 |
| | 1509 | * @since 0.71.0 |
| 1510 | 1510 | * @see wpdb::show_errors() |
| 1511 | 1511 | * |
| 1512 | 1512 | * @return bool Whether showing of errors was active |
| … |
… |
class wpdb {
|
| 1537 | 1537 | /** |
| 1538 | 1538 | * Kill cached query results. |
| 1539 | 1539 | * |
| 1540 | | * @since 0.71 |
| | 1540 | * @since 0.71.0 |
| 1541 | 1541 | */ |
| 1542 | 1542 | public function flush() { |
| 1543 | 1543 | $this->last_result = array(); |
| … |
… |
class wpdb {
|
| 1846 | 1846 | * |
| 1847 | 1847 | * More information can be found on the codex page. |
| 1848 | 1848 | * |
| 1849 | | * @since 0.71 |
| | 1849 | * @since 0.71.0 |
| 1850 | 1850 | * |
| 1851 | 1851 | * @param string $query Database query |
| 1852 | 1852 | * @return int|bool Boolean true for CREATE, ALTER, TRUNCATE and DROP queries. Number of rows |
| … |
… |
class wpdb {
|
| 2450 | 2450 | * If the SQL result contains more than one column and/or more than one row, this function returns the value in the column and row specified. |
| 2451 | 2451 | * If $query is null, this function returns the value in the specified column and row from the previous SQL result. |
| 2452 | 2452 | * |
| 2453 | | * @since 0.71 |
| | 2453 | * @since 0.71.0 |
| 2454 | 2454 | * |
| 2455 | 2455 | * @param string|null $query Optional. SQL query. Defaults to null, use the result from the previous query. |
| 2456 | 2456 | * @param int $x Optional. Column of value to return. Indexed from 0. |
| … |
… |
class wpdb {
|
| 2482 | 2482 | * |
| 2483 | 2483 | * Executes a SQL query and returns the row from the SQL result. |
| 2484 | 2484 | * |
| 2485 | | * @since 0.71 |
| | 2485 | * @since 0.71.0 |
| 2486 | 2486 | * |
| 2487 | 2487 | * @param string|null $query SQL query. |
| 2488 | 2488 | * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to |
| … |
… |
class wpdb {
|
| 2528 | 2528 | * If the SQL result contains more than one column, this function returns the column specified. |
| 2529 | 2529 | * If $query is null, this function returns the specified column from the previous SQL result. |
| 2530 | 2530 | * |
| 2531 | | * @since 0.71 |
| | 2531 | * @since 0.71.0 |
| 2532 | 2532 | * |
| 2533 | 2533 | * @param string|null $query Optional. SQL query. Defaults to previous query. |
| 2534 | 2534 | * @param int $x Optional. Column to return. Indexed from 0. |
| … |
… |
class wpdb {
|
| 2558 | 2558 | * |
| 2559 | 2559 | * Executes a SQL query and returns the entire SQL result. |
| 2560 | 2560 | * |
| 2561 | | * @since 0.71 |
| | 2561 | * @since 0.71.0 |
| 2562 | 2562 | * |
| 2563 | 2563 | * @param string $query SQL query. |
| 2564 | 2564 | * @param string $output Optional. Any of ARRAY_A | ARRAY_N | OBJECT | OBJECT_K constants. |
| … |
… |
class wpdb {
|
| 3295 | 3295 | /** |
| 3296 | 3296 | * Retrieve column metadata from the last query. |
| 3297 | 3297 | * |
| 3298 | | * @since 0.71 |
| | 3298 | * @since 0.71.0 |
| 3299 | 3299 | * |
| 3300 | 3300 | * @param string $info_type Optional. Type one of name, table, def, max_length, not_null, primary_key, multiple_key, unique_key, numeric, blob, type, unsigned, zerofill |
| 3301 | 3301 | * @param int $col_offset Optional. 0: col name. 1: which table the col's in. 2: col's max length. 3: if the col is numeric. 4: col's type |