Changeset 47347 for trunk/src/wp-includes/option.php
- Timestamp:
- 02/23/2020 01:05:28 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r47325 r47347 154 154 155 155 /** 156 * Protect WordPress special option from being modified.156 * Protects WordPress special option from being modified. 157 157 * 158 158 * Will die if $option is in protected list. Protected options are 'alloptions' … … 176 176 177 177 /** 178 * Print option value after sanitizing for forms.178 * Prints option value after sanitizing for forms. 179 179 * 180 180 * @since 1.5.0 … … 278 278 279 279 /** 280 * Update the value of an option that was already added.281 * 282 * You do not need to serialize values. If the value needs to be serialized, then283 * it will be serialized before it is inserted into the database. Remember,284 * resources cannot be serialized or added as an option.280 * Updates the value of an option that was already added. 281 * 282 * You do not need to serialize values. If the value needs to be serialized, 283 * then it will be serialized before it is inserted into the database. 284 * Remember, resources cannot be serialized or added as an option. 285 285 * 286 286 * If the option does not exist, then the option will be added with the option value, … … 438 438 439 439 /** 440 * Add a new option.441 * 442 * You do not need to serialize values. If the value needs to be serialized, then443 * it will be serialized before it is inserted into the database. Remember,444 * resources cannot be serialized or added as an option.440 * Adds a new option. 441 * 442 * You do not need to serialize values. If the value needs to be serialized, 443 * then it will be serialized before it is inserted into the database. 444 * Remember, resources cannot be serialized or added as an option. 445 445 * 446 446 * You can create options without values and then update the values later. … … 624 624 625 625 /** 626 * Delete a transient.626 * Deletes a transient. 627 627 * 628 628 * @since 2.8.0 … … 671 671 672 672 /** 673 * Getthe value of a transient.673 * Retrieves the value of a transient. 674 674 * 675 675 * If the transient does not exist, does not have a value, or has expired, … … 742 742 743 743 /** 744 * Set /updatethe value of a transient.745 * 746 * You do not need to serialize values. If the value needs to be serialized, then747 * it will be serialized before it is set.744 * Sets/updates the value of a transient. 745 * 746 * You do not need to serialize values. If the value needs to be serialized, 747 * then it will be serialized before it is set. 748 748 * 749 749 * @since 2.8.0 … … 966 966 967 967 /** 968 * Retrieve user interface setting value based on setting name.968 * Retrieves user interface setting value based on setting name. 969 969 * 970 970 * @since 2.7.0 … … 981 981 982 982 /** 983 * Add or updateuser interface setting.983 * Adds or updates user interface setting. 984 984 * 985 985 * Both $name and $value can contain only ASCII letters, numbers, hyphens, and underscores. … … 1005 1005 1006 1006 /** 1007 * Delete user interface settings.1007 * Deletes user interface settings. 1008 1008 * 1009 1009 * Deleting settings would reset them to the defaults. … … 1040 1040 1041 1041 /** 1042 * Retrieve all user interface settings.1042 * Retrieves all user interface settings. 1043 1043 * 1044 1044 * @since 2.7.0 … … 1081 1081 1082 1082 /** 1083 * Private. Set all user interface settings.1083 * Private. Sets all user interface settings. 1084 1084 * 1085 1085 * @since 2.8.0 … … 1124 1124 1125 1125 /** 1126 * Delete the user settings of the current user.1126 * Deletes the user settings of the current user. 1127 1127 * 1128 1128 * @since 2.7.0 … … 1157 1157 1158 1158 /** 1159 * Add a new option for the current network.1159 * Adds a new option for the current network. 1160 1160 * 1161 1161 * Existing options will not be updated. Note that prior to 3.3 this wasn't the case. … … 1190 1190 1191 1191 /** 1192 * Update the value of an option that was already added for the current network.1192 * Updates the value of an option that was already added for the current network. 1193 1193 * 1194 1194 * @since 2.8.0 … … 1206 1206 1207 1207 /** 1208 * Retrieve a network's option value based on the option name.1208 * Retrieves a network's option value based on the option name. 1209 1209 * 1210 1210 * @since 4.4.0 … … 1337 1337 1338 1338 /** 1339 * Add a new network option.1339 * Adds a new network option. 1340 1340 * 1341 1341 * Existing options will not be updated. … … 1555 1555 1556 1556 /** 1557 * Update the value of a network option that was already added.1557 * Updates the value of a network option that was already added. 1558 1558 * 1559 1559 * @since 4.4.0 … … 1686 1686 1687 1687 /** 1688 * Delete a site transient.1688 * Deletes a site transient. 1689 1689 * 1690 1690 * @since 2.9.0 … … 1732 1732 1733 1733 /** 1734 * Getthe value of a site transient.1734 * Retrieves the value of a site transient. 1735 1735 * 1736 1736 * If the transient does not exist, does not have a value, or has expired, … … 1804 1804 1805 1805 /** 1806 * Set /updatethe value of a site transient.1807 * 1808 * You do not need to serialize values , if the value needs to be serialize, then1809 * it will be serialized before it is set.1806 * Sets/updates the value of a site transient. 1807 * 1808 * You do not need to serialize values. If the value needs to be serialized, 1809 * then it will be serialized before it is set. 1810 1810 * 1811 1811 * @since 2.9.0 … … 1897 1897 1898 1898 /** 1899 * Register default settings available in WordPress.1899 * Registers default settings available in WordPress. 1900 1900 * 1901 1901 * The settings registered here are primarily useful for the REST API, so this … … 2090 2090 2091 2091 /** 2092 * Register a setting and its data.2092 * Registers a setting and its data. 2093 2093 * 2094 2094 * @since 2.7.0 … … 2193 2193 2194 2194 /** 2195 * Unregister a setting.2195 * Unregisters a setting. 2196 2196 * 2197 2197 * @since 2.7.0 … … 2287 2287 2288 2288 /** 2289 * Filter the default value for the option.2289 * Filters the default value for the option. 2290 2290 * 2291 2291 * For settings which register a default setting in `register_setting()`, this
Note: See TracChangeset
for help on using the changeset viewer.