Changeset 13299 for trunk/wp-includes/deprecated.php
- Timestamp:
- 02/22/2010 06:25:51 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r13297 r13299 2075 2075 2076 2076 /** 2077 * Checks and cleans a URL. 2078 * 2079 * A number of characters are removed from the URL. If the URL is for displaying 2080 * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 2081 * is applied to the returned cleaned URL. 2082 * 2083 * @since 1.2.0 2084 * @deprecated 3.0.0 2085 * @deprecated Use esc_url() 2086 * @see Alias for esc_url() 2087 * 2088 * @param string $url The URL to be cleaned. 2089 * @param array $protocols Optional. An array of acceptable protocols. 2090 * @param string $context Optional. How the URL will be used. Default is 'display'. 2091 * @return string The cleaned $url after the 'clean_url' filter is applied. 2092 */ 2093 function clean_url( $url, $protocols = null, $context = 'display' ) { 2094 if ( $context == 'db' ) 2095 _deprecated_function( 'clean_url( $context = \'db\' )', '3.0', 'esc_url_raw()' ); 2096 else 2097 _deprecated_function( __FUNCTION__, '3.0', 'esc_url()' ); 2098 return esc_url( $url, $protocols, $context ); 2099 } 2100 2101 /** 2077 2102 * Escape single quotes, specialchar double quotes, and fix line endings. 2078 2103 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)