Changeset 56192 for trunk/src/wp-includes/option.php
- Timestamp:
- 07/10/2023 10:46:22 PM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r56061 r56192 665 665 $value = sanitize_option( $option, $value ); 666 666 667 // Make sure the option doesn't already exist. 668 // We can check the 'notoptions' cache before we ask for a DB query. 667 /* 668 * Make sure the option doesn't already exist. 669 * We can check the 'notoptions' cache before we ask for a DB query. 670 */ 669 671 $notoptions = wp_cache_get( 'notoptions', 'options' ); 670 672 … … 999 1001 $result = add_option( $transient_option, $value, '', $autoload ); 1000 1002 } else { 1001 // If expiration is requested, but the transient has no timeout option, 1002 // delete, then re-create transient rather than update. 1003 /* 1004 * If expiration is requested, but the transient has no timeout option, 1005 * delete, then re-create transient rather than update. 1006 */ 1003 1007 $update = true; 1004 1008 … … 1599 1603 $cache_key = "$network_id:$option"; 1600 1604 1601 // Make sure the option doesn't already exist. 1602 // We can check the 'notoptions' cache before we ask for a DB query. 1605 /* 1606 * Make sure the option doesn't already exist. 1607 * We can check the 'notoptions' cache before we ask for a DB query. 1608 */ 1603 1609 $notoptions = wp_cache_get( $notoptions_key, 'site-options' ); 1604 1610
Note: See TracChangeset
for help on using the changeset viewer.