Changeset 51597 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 08/10/2021 07:43:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r51589 r51597 4405 4405 4406 4406 /** 4407 * Performs esc_url() for database usage.4407 * Performs esc_url() for database or redirect usage. 4408 4408 * 4409 4409 * @since 2.8.0 … … 4418 4418 function esc_url_raw( $url, $protocols = null ) { 4419 4419 return esc_url( $url, $protocols, 'db' ); 4420 } 4421 4422 /** 4423 * Performs esc_url() for database or redirect usage. 4424 * 4425 * This function is an alias for esc_url_raw(). 4426 * 4427 * @since 2.3.1 4428 * @since 2.8.0 Deprecated in favor of esc_url_raw(). 4429 * @since 5.9.0 Restored (un-deprecated). 4430 * 4431 * @see esc_url_raw() 4432 * 4433 * @param string $url The URL to be cleaned. 4434 * @param string[] $protocols Optional. An array of acceptable protocols. 4435 * Defaults to return value of wp_allowed_protocols(). 4436 * @return string The cleaned URL after esc_url() is run with the 'db' context. 4437 */ 4438 function sanitize_url( $url, $protocols = null ) { 4439 return esc_url_raw( $url, $protocols ); 4420 4440 } 4421 4441
Note: See TracChangeset
for help on using the changeset viewer.