Changeset 47550 for trunk/src/wp-includes/option.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r47373 r47550 133 133 } 134 134 135 if ( in_array( $option, array( 'siteurl', 'home', 'category_base', 'tag_base' ) ) ) {135 if ( in_array( $option, array( 'siteurl', 'home', 'category_base', 'tag_base' ), true ) ) { 136 136 $value = untrailingslashit( $value ); 137 137 } … … 1773 1773 $no_timeout = array( 'update_core', 'update_plugins', 'update_themes' ); 1774 1774 $transient_option = '_site_transient_' . $transient; 1775 if ( ! in_array( $transient, $no_timeout ) ) {1775 if ( ! in_array( $transient, $no_timeout, true ) ) { 1776 1776 $transient_timeout = '_site_transient_timeout_' . $transient; 1777 1777 $timeout = get_site_option( $transient_timeout ); … … 2233 2233 } 2234 2234 2235 $pos = array_search( $option_name, (array) $new_whitelist_options[ $option_group ] );2235 $pos = array_search( $option_name, (array) $new_whitelist_options[ $option_group ], true ); 2236 2236 if ( false !== $pos ) { 2237 2237 unset( $new_whitelist_options[ $option_group ][ $pos ] );
Note: See TracChangeset
for help on using the changeset viewer.