Changeset 57110
- Timestamp:
- 11/14/2023 12:42:52 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r57053 r57110 257 257 * @global wpdb $wpdb WordPress database abstraction object. 258 258 * 259 * @param array$options An array of option names to be loaded.259 * @param string[] $options An array of option names to be loaded. 260 260 */ 261 261 function wp_prime_option_caches( $options ) { 262 global $wpdb; 263 262 264 $alloptions = wp_load_alloptions(); 263 265 $cached_options = wp_cache_get_multiple( $options, 'options' ); … … 284 286 } 285 287 286 global $wpdb;287 288 $results = $wpdb->get_results( 288 289 $wpdb->prepare( … … 352 353 * @since 6.4.0 353 354 * 354 * @param array$options An array of option names to retrieve.355 * @param string[] $options An array of option names to retrieve. 355 356 * @return array An array of key-value pairs for the requested options. 356 357 */ … … 499 500 * @see wp_set_option_autoload_values() 500 501 * 501 * @param array$options List of option names. Expected to not be SQL-escaped.502 * @param string[] $options List of option names. Expected to not be SQL-escaped. 502 503 * @param string|bool $autoload Autoload value to control whether to load the options when WordPress starts up. 503 504 * Accepts 'yes'|true to enable or 'no'|false to disable.
Note: See TracChangeset
for help on using the changeset viewer.