Uses
| Uses | Description |
|---|---|
| wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
This function has been deprecated.
Fixes JavaScript bugs in browsers.
Converts unicode characters to HTML numbered entities.
(string) (Required) Text to be made safe.
(string) Fixed text.
File: wp-includes/deprecated.php
function funky_javascript_fix($text) {
_deprecated_function( __FUNCTION__, '3.0.0' );
// Fixes for browsers' JavaScript bugs.
global $is_macIE, $is_winIE;
if ( $is_winIE || $is_macIE )
$text = preg_replace_callback("/\%u([0-9A-F]{4,4})/",
"funky_javascript_callback",
$text);
return $text;
} | Version | Description |
|---|---|
| 3.0.0 | This function has been deprecated. |
| 1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/funky_javascript_fix