Changeset 13096 for trunk/wp-includes/formatting.php
- Timestamp:
- 02/13/2010 07:28:19 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/formatting.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r13089 r13096 1399 1399 } 1400 1400 1401 1402 1401 /** 1403 1402 * Convert one smiley code to the icon graphic file equivalent. … … 1429 1428 return " <img src='$srcurl' alt='$smiley_masked' class='wp-smiley' /> "; 1430 1429 } 1431 1432 1430 1433 1431 /** … … 2227 2225 } 2228 2226 2229 2230 2227 /** 2231 2228 * Checks and cleans a URL. … … 2262 2259 */ 2263 2260 function esc_url_raw( $url, $protocols = null ) { 2264 return clean_url( $url, $protocols, 'db' );2265 }2266 2267 /**2268 * Performs esc_url() for database or redirect usage.2269 *2270 * @see esc_url()2271 * @deprecated 2.8.02272 *2273 * @since 2.3.12274 *2275 * @param string $url The URL to be cleaned.2276 * @param array $protocols An array of acceptable protocols.2277 * @return string The cleaned URL.2278 */2279 function sanitize_url( $url, $protocols = null ) {2280 2261 return clean_url( $url, $protocols, 'db' ); 2281 2262 } … … 2319 2300 2320 2301 /** 2321 * Escape single quotes, specialchar double quotes, and fix line endings.2322 *2323 * The filter 'js_escape' is also applied by esc_js()2324 *2325 * @since 2.0.42326 *2327 * @deprecated 2.8.02328 * @see esc_js()2329 *2330 * @param string $text The text to be escaped.2331 * @return string Escaped text.2332 */2333 function js_escape( $text ) {2334 return esc_js( $text );2335 }2336 2337 /**2338 2302 * Escaping for HTML blocks. 2339 2303 * … … 2350 2314 2351 2315 /** 2352 * Escaping for HTML blocks2353 * @deprecated 2.8.02354 * @see esc_html()2355 */2356 function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {2357 if ( func_num_args() > 1 ) { // Maintain backwards compat for people passing additional args2358 $args = func_get_args();2359 return call_user_func_array( '_wp_specialchars', $args );2360 } else {2361 return esc_html( $string );2362 }2363 }2364 2365 /**2366 2316 * Escaping for HTML attributes. 2367 2317 * … … 2375 2325 $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES ); 2376 2326 return apply_filters( 'attribute_escape', $safe_text, $text ); 2377 }2378 2379 /**2380 * Escaping for HTML attributes.2381 *2382 * @since 2.0.62383 *2384 * @deprecated 2.8.02385 * @see esc_attr()2386 *2387 * @param string $text2388 * @return string2389 */2390 function attribute_escape( $text ) {2391 return esc_attr( $text );2392 2327 } 2393 2328
Note: See TracChangeset
for help on using the changeset viewer.