Changeset 60363
- Timestamp:
- 06/29/2025 08:53:29 PM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install.php
r59803 r60363 234 234 /** 235 235 * @global string $wp_version The WordPress version string. 236 * @global string $required_php_version The required PHP version string.236 * @global string $required_php_version The minimum required PHP version string. 237 237 * @global string[] $required_php_extensions The names of required PHP extensions. 238 * @global string $required_mysql_version The required MySQL version string.238 * @global string $required_mysql_version The minimum required MySQL version string. 239 239 * @global wpdb $wpdb WordPress database abstraction object. 240 240 */ -
trunk/src/wp-admin/upgrade.php
r59803 r60363 38 38 /** 39 39 * @global string $wp_version The WordPress version string. 40 * @global string $required_php_version The required PHP version string.40 * @global string $required_php_version The minimum required PHP version string. 41 41 * @global string[] $required_php_extensions The names of required PHP extensions. 42 * @global string $required_mysql_version The required MySQL version string.42 * @global string $required_mysql_version The minimum required MySQL version string. 43 43 * @global wpdb $wpdb WordPress database abstraction object. 44 44 */ -
trunk/src/wp-includes/class-wpdb.php
r60254 r60363 44 44 * access to the WordPress database. 45 45 * 46 * It is possible to replace th is classwith your own by setting the $wpdb global variable46 * It is possible to replace the global instance with your own by setting the $wpdb global variable 47 47 * in wp-content/db.php file to your class. The wpdb class will still be included, so you can 48 48 * extend it or simply use your own. … … 238 238 * 239 239 * You can set this to have multiple WordPress installations in a single database. 240 * The second reason is for possible security precautions.241 240 * 242 241 * @since 2.5.0 … … 942 941 * Changes the current SQL mode, and ensures its WordPress compatibility. 943 942 * 944 * If no modes are passed, it will ensure the current MySQL server modes are compatible.943 * If no modes are passed, it will ensure the current SQL server modes are compatible. 945 944 * 946 945 * @since 3.9.0 … … 1370 1369 1371 1370 /** 1372 * Quotes an identifier for a MySQL database, e.g. table/field names.1371 * Quotes an identifier such as a table or field name. 1373 1372 * 1374 1373 * @since 6.2.0 … … 1434 1433 * "SELECT DATE_FORMAT(`field`, '%%c') FROM `table` WHERE `column` = %s", 1435 1434 * 'foo' 1435 * ); 1436 * 1437 * $wpdb->prepare( 1438 * "SELECT * FROM %i WHERE %i = %s", 1439 * $table, 1440 * $field, 1441 * $value 1436 1442 * ); 1437 1443 * … … 1958 1964 1959 1965 /* 1960 * S et the MySQLierror reporting off because WordPress handles its own.1966 * Switch error reporting off because WordPress handles its own. 1961 1967 * This is due to the default value change from `MYSQLI_REPORT_OFF` 1962 1968 * to `MYSQLI_REPORT_ERROR|MYSQLI_REPORT_STRICT` in PHP 8.1. … … 2101 2107 2102 2108 $host = ! empty( $matches['host'] ) ? $matches['host'] : ''; 2103 // MySQLi port cannot be a string; must be null or an integer.2109 // Port cannot be a string; must be null or an integer. 2104 2110 $port = ! empty( $matches['port'] ) ? absint( $matches['port'] ) : null; 2105 2111 … … 2291 2297 $this->last_error = mysqli_error( $this->dbh ); 2292 2298 } else { 2293 $this->last_error = __( 'Unable to retrieve the error message from MySQL' );2299 $this->last_error = __( 'Unable to retrieve the error message from the database server' ); 2294 2300 } 2295 2301 … … 3474 3480 3475 3481 /** 3476 * Checks if the query is accessing a collation considered safe on the current version of MySQL.3482 * Checks if the query is accessing a collation considered safe. 3477 3483 * 3478 3484 * @since 4.2.0 … … 3988 3994 3989 3995 /** 3990 * Determines whether MySQL databaseis at least the required minimum version.3996 * Determines whether the database server is at least the required minimum version. 3991 3997 * 3992 3998 * @since 2.5.0 3993 3999 * 3994 * @global string $required_mysql_version The required MySQL version string.4000 * @global string $required_mysql_version The minimum required MySQL version string. 3995 4001 * @return void|WP_Error 3996 4002 */ … … 4048 4054 * Capability sniffs for the database server and current version of WPDB. 4049 4055 * 4050 * Database sniffs are based on the version of MySQL the site is using.4056 * Database sniffs are based on the version of the database server in use. 4051 4057 * 4052 4058 * WPDB sniffs are added as new features are introduced to allow theme and plugin … … 4120 4126 4121 4127 /** 4122 * Retrieves the database server version .4128 * Retrieves the database server version number. 4123 4129 * 4124 4130 * @since 2.7.0 … … 4131 4137 4132 4138 /** 4133 * Returns the version of the MySQLserver.4139 * Returns the raw version string of the database server. 4134 4140 * 4135 4141 * @since 5.5.0 4136 4142 * 4137 * @return string Server version as a string.4143 * @return string Database server version as a string. 4138 4144 */ 4139 4145 public function db_server_info() { -
trunk/src/wp-includes/load.php
r59803 r60363 140 140 141 141 /** 142 * Checks for the required PHP version, and the mysqli extension or 143 * a database drop-in. 142 * Checks the server requirements. 143 * 144 * - PHP version 145 * - PHP extensions 146 * - MySQL or MariaDB version (unless a database drop-in is present) 144 147 * 145 148 * Dies if requirements are not met. … … 148 151 * @access private 149 152 * 150 * @global string $required_php_version The required PHP version string.153 * @global string $required_php_version The minimum required PHP version string. 151 154 * @global string[] $required_php_extensions The names of required PHP extensions. 152 155 * @global string $wp_version The WordPress version string. -
trunk/src/wp-includes/version.php
r60093 r60363 34 34 35 35 /** 36 * Holds the required PHP version.36 * Holds the minimum required PHP version. 37 37 * 38 38 * @global string $required_php_version … … 51 51 52 52 /** 53 * Holds the required MySQL version.53 * Holds the minimum required MySQL version. 54 54 * 55 55 * @global string $required_mysql_version -
trunk/src/wp-settings.php
r59925 r60363 26 26 * @global int $wp_db_version WordPress database version. 27 27 * @global string $tinymce_version TinyMCE version. 28 * @global string $required_php_version The required PHP version string.28 * @global string $required_php_version The minimum required PHP version string. 29 29 * @global string[] $required_php_extensions The names of required PHP extensions. 30 * @global string $required_mysql_version The required MySQL version string.30 * @global string $required_mysql_version The minimum required MySQL version string. 31 31 * @global string $wp_local_package Locale code of the package. 32 32 */ … … 36 36 require ABSPATH . WPINC . '/load.php'; 37 37 38 // Check for the required PHP version and for the MySQL extension or a database drop-in.38 // Check the server requirements. 39 39 wp_check_php_mysql_versions(); 40 40
Note: See TracChangeset for help on using the changeset viewer.