Changeset 13108
- Timestamp:
- 02/13/2010 10:58:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r13096 r13108 2139 2139 * 2140 2140 * A number of characters are removed from the URL. If the URL is for displaying 2141 * (the default behaviour) amperstands are also replaced. The ' esc_url' filter2141 * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 2142 2142 * is applied to the returned cleaned URL. 2143 2143 * … … 2150 2150 * Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet' if not set. 2151 2151 * @param string $context Optional. How the URL will be used. Default is 'display'. 2152 * @return string The cleaned $url after the 'clean ed_url' filter is applied.2152 * @return string The cleaned $url after the 'clean_url' filter is applied. 2153 2153 */ 2154 2154 function clean_url( $url, $protocols = null, $context = 'display' ) { … … 2229 2229 * 2230 2230 * A number of characters are removed from the URL. If the URL is for displaying 2231 * (the default behaviour) amperstands are also replaced. The ' esc_url' filter2231 * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 2232 2232 * is applied to the returned cleaned URL. 2233 2233 * 2234 2234 * @since 2.8.0 2235 * @uses esc_url()2235 * @uses clean_url() 2236 2236 * @uses wp_kses_bad_protocol() To only permit protocols in the URL set 2237 2237 * via $protocols or the common ones set in the function. … … 2240 2240 * @param array $protocols Optional. An array of acceptable protocols. 2241 2241 * Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet' if not set. 2242 * @return string The cleaned $url after the 'clean ed_url' filter is applied.2242 * @return string The cleaned $url after the 'clean_url' filter is applied. 2243 2243 */ 2244 2244 function esc_url( $url, $protocols = null ) { … … 2249 2249 * Performs esc_url() for database usage. 2250 2250 * 2251 * @see esc_url()2252 * @see esc_url()2253 *2254 2251 * @since 2.8.0 2252 * @uses clean_url() 2255 2253 * 2256 2254 * @param string $url The URL to be cleaned.
Note: See TracChangeset
for help on using the changeset viewer.