Changeset 13988 for trunk/wp-includes/deprecated.php
- Timestamp:
- 04/04/2010 07:11:23 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/deprecated.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/deprecated.php
r13761 r13988 2461 2461 return count_user_posts( $userid ); 2462 2462 } 2463 2464 /** 2465 * Callback used to change %uXXXX to &#YYY; syntax 2466 * 2467 * @since 2.8.0 2468 * @access private 2469 * @deprecated 3.0.0 2470 * 2471 * @param array $matches Single Match 2472 * @return string An HTML entity 2473 */ 2474 function funky_javascript_callback($matches) { 2475 return "&#".base_convert($matches[1],16,10).";"; 2476 } 2477 2478 /** 2479 * Fixes javascript bugs in browsers. 2480 * 2481 * Converts unicode characters to HTML numbered entities. 2482 * 2483 * @since 1.5.0 2484 * @uses $is_macIE 2485 * @uses $is_winIE 2486 * @deprecated 3.0.0 2487 * 2488 * @param string $text Text to be made safe. 2489 * @return string Fixed text. 2490 */ 2491 function funky_javascript_fix($text) { 2492 _deprecated_function( __FUNCTION__, '3.0' ); 2493 // Fixes for browsers' javascript bugs 2494 global $is_macIE, $is_winIE; 2495 2496 if ( $is_winIE || $is_macIE ) 2497 $text = preg_replace_callback("/\%u([0-9A-F]{4,4})/", 2498 "funky_javascript_callback", 2499 $text); 2500 2501 return $text; 2502 }
Note: See TracChangeset
for help on using the changeset viewer.