diff --git wp-includes/formatting.php wp-includes/formatting.php
index 835862c..fa6426e 100755
|
|
function seems_utf8( $str ) { |
939 | 939 | * Also compatible with old values; converting single quotes if set to 'single', |
940 | 940 | * double if set to 'double' or both if otherwise set. |
941 | 941 | * Default is ENT_NOQUOTES. |
942 | | * @param string $charset Optional. The character encoding of the string. Default is false. |
943 | | * @param bool $double_encode Optional. Whether to encode existing html entities. Default is false. |
| 942 | * @param false|string $charset Optional. The character encoding of the string. Default is false. |
| 943 | * @param bool $double_encode Optional. Whether to encode existing html entities. Default is false. |
944 | 944 | * @return string The encoded text with HTML entities. |
945 | 945 | */ |
946 | 946 | function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { |
… |
… |
function translate_smiley( $matches ) { |
3187 | 3187 | * @param string $site_url Site URL, as returned by site_url(). |
3188 | 3188 | */ |
3189 | 3189 | $src_url = apply_filters( 'smilies_src', includes_url( "images/smilies/$img" ), $img, site_url() ); |
3190 | | |
| 3190 | |
| 3191 | /* translators: %s: smiley image URL */ |
3191 | 3192 | return sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', esc_url( $src_url ), esc_attr( $smiley ) ); |
3192 | 3193 | } |
3193 | 3194 | |
… |
… |
function sanitize_email( $email ) { |
3599 | 3600 | * |
3600 | 3601 | * @since 1.5.0 |
3601 | 3602 | * |
3602 | | * @param int $from Unix timestamp from which the difference begins. |
3603 | | * @param int $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set. |
| 3603 | * @param int $from Unix timestamp from which the difference begins. |
| 3604 | * @param string|int $to Optional. Unix timestamp to end the time difference. Default becomes time() if not set. |
3604 | 3605 | * @return string Human readable time difference. |
3605 | 3606 | */ |
3606 | 3607 | function human_time_diff( $from, $to = '' ) { |
… |
… |
function wp_pre_kses_less_than_callback( $matches ) { |
4799 | 4800 | * @link https://secure.php.net/sprintf |
4800 | 4801 | * |
4801 | 4802 | * @param string $pattern The string which formatted args are inserted. |
4802 | | * @param mixed $args ,... Arguments to be formatted into the $pattern string. |
| 4803 | * |
4803 | 4804 | * @return string The formatted string. |
4804 | 4805 | */ |
4805 | 4806 | function wp_sprintf( $pattern ) { |
… |
… |
function wp_staticize_emoji( $text ) { |
5631 | 5632 | |
5632 | 5633 | $file = str_replace( ';&#x', '-', $emojum ); |
5633 | 5634 | $file = str_replace( array( '&#x', ';' ), '', $file ); |
| 5635 | |
| 5636 | /* translators: %s: emoji URL */ |
5634 | 5637 | |
5635 | 5638 | $entity = sprintf( '<img src="%s" alt="%s" class="wp-smiley" style="height: 1em; max-height: 1em;" />', $cdn_url . $file . $ext, $emoji_char ); |
5636 | 5639 | |