Changeset 48590 for trunk/src/wp-includes/option.php
- Timestamp:
- 07/23/2020 09:09:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r48575 r48590 504 504 * @global wpdb $wpdb WordPress database abstraction object. 505 505 * 506 * @param string $optionName of the option to add. Expected to not be SQL-escaped.507 * @param mixed $valueOptional. Option value. Must be serializable if non-scalar.508 * 509 * @param string $deprecatedOptional. Description. Not used anymore.510 * @param string|bool $autoloadOptional. Whether to load the option when WordPress starts up.511 * 506 * @param string $option Name of the option to add. Expected to not be SQL-escaped. 507 * @param mixed $value Optional. Option value. Must be serializable if non-scalar. 508 * Expected to not be SQL-escaped. 509 * @param string $deprecated Optional. Description. Not used anymore. 510 * @param string|bool $autoload Optional. Whether to load the option when WordPress starts up. 511 * Default is enabled. Accepts 'no' to disable for legacy reasons. 512 512 * @return bool True if the option was added, false otherwise. 513 513 */ … … 1304 1304 * @global wpdb $wpdb WordPress database abstraction object. 1305 1305 * 1306 * @param int 1307 * @param string 1308 * @param mixed 1306 * @param int $network_id ID of the network. Can be null to default to the current network ID. 1307 * @param string $option Name of the option to retrieve. Expected to not be SQL-escaped. 1308 * @param mixed $default Optional. Value to return if the option doesn't exist. Default false. 1309 1309 * @return mixed Value set for the option. 1310 1310 */ … … 1656 1656 * @global wpdb $wpdb WordPress database abstraction object. 1657 1657 * 1658 * @param int 1659 * @param string 1660 * @param mixed 1658 * @param int $network_id ID of the network. Can be null to default to the current network ID. 1659 * @param string $option Name of the option. Expected to not be SQL-escaped. 1660 * @param mixed $value Option value. Expected to not be SQL-escaped. 1661 1661 * @return bool True if the value was updated, false otherwise. 1662 1662 */ … … 2434 2434 * @since 4.7.0 2435 2435 * 2436 * @param mixed $defaultExisting default value to return.2437 * @param string $option Option name.2438 * @param bool $passed_default Was `get_option()` passed a default value?2436 * @param mixed $default Existing default value to return. 2437 * @param string $option Option name. 2438 * @param bool $passed_default Was `get_option()` passed a default value? 2439 2439 * @return mixed Filtered default value. 2440 2440 */
Note: See TracChangeset
for help on using the changeset viewer.