Changeset 30540
- Timestamp:
- 11/24/2014 05:29:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r30496 r30540 12 12 * 13 13 * As an example, 14 * <code>15 * 'cause today's effort makes it worth tomorrow's "holiday"...16 * </code>14 * 15 * 'cause today's effort makes it worth tomorrow's "holiday" ... 16 * 17 17 * Becomes: 18 * <code>19 * ’cause today’s effort makes it worth tomorrow’s “holiday”…20 * </code>18 * 19 * ’cause today’s effort makes it worth tomorrow’s “holiday” … 20 * 21 21 * Code within certain html blocks are skipped. 22 22 * … … 313 313 * @access private 314 314 * 315 * @param string $text Text to check. Must be a tag like <html> or [shortcode].315 * @param string $text Text to check. Must be a tag like `<html>` or `[shortcode]`. 316 316 * @param array $stack List of open tag elements. 317 317 * @param array $disabled_elements The tag names to match against. Spaces are not allowed in tag names. … … 481 481 * Don't auto-p wrap shortcodes that stand alone 482 482 * 483 * Ensures that shortcodes are not wrapped in <<p>>...<</p>>.483 * Ensures that shortcodes are not wrapped in `<p>...</p>`. 484 484 * 485 485 * @since 2.9.0 … … 1367 1367 * Converts a number of characters from a string. 1368 1368 * 1369 * Metadata tags <<title>> and <<category>> are removed, <<br>> and <<hr>>are1369 * Metadata tags `<title>` and `<category>` are removed, `<br>` and `<hr>` are 1370 1370 * converted into correct XHTML and Unicode characters are converted to the 1371 1371 * valid range. … … 1936 1936 * Input string must have no null characters (or eventual transformations on output chunks must not care about null characters) 1937 1937 * 1938 * <code> 1939 * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) == 1940 * array ( 1941 * 0 => '1234 67890 ', // 11 characters: Perfect split 1942 * 1 => '1234 ', // 5 characters: '1234 67890a' was too long 1943 * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long 1944 * 3 => '1234 890 ', // 11 characters: Perfect split 1945 * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long 1946 * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split 1947 * 6 => ' 45678 ', // 11 characters: Perfect split 1948 * 7 => '1 3 5 7 9', // 9 characters: End of $string 1949 * ); 1950 * </code> 1938 * _split_str_by_whitespace( "1234 67890 1234 67890a cd 1234 890 123456789 1234567890a 45678 1 3 5 7 90 ", 10 ) == 1939 * array ( 1940 * 0 => '1234 67890 ', // 11 characters: Perfect split 1941 * 1 => '1234 ', // 5 characters: '1234 67890a' was too long 1942 * 2 => '67890a cd ', // 10 characters: '67890a cd 1234' was too long 1943 * 3 => '1234 890 ', // 11 characters: Perfect split 1944 * 4 => '123456789 ', // 10 characters: '123456789 1234567890a' was too long 1945 * 5 => '1234567890a ', // 12 characters: Too long, but no inner whitespace on which to split 1946 * 6 => ' 45678 ', // 11 characters: Perfect split 1947 * 7 => '1 3 5 7 9', // 9 characters: End of $string 1948 * ); 1951 1949 * 1952 1950 * @since 3.4.0 … … 2022 2020 * Callback handler for {@link convert_smilies()}. 2023 2021 * Looks up one smiley code in the $wpsmiliestrans global array and returns an 2024 * <img>string for that smiley.2022 * `<img>` string for that smiley. 2025 2023 * 2026 2024 * @global array $wpsmiliestrans … … 3704 3702 * Adds a Target attribute to all links in passed content. 3705 3703 * 3706 * This function by default only applies to <a>tags, however this can be3704 * This function by default only applies to `<a>` tags, however this can be 3707 3705 * modified by the 3rd param. 3708 3706 * 3709 * <b>NOTE:</b>Any current target attributed will be stripped and replaced.3707 * *NOTE:* Any current target attributed will be stripped and replaced. 3710 3708 * 3711 3709 * @since 2.7.0 … … 3758 3756 * 3759 3757 * This differs from strip_tags() because it removes the contents of 3760 * the <script> and <style> tags. E.g. strip_tags( '<script>something</script>' )3758 * the `<script>` and `<style>` tags. E.g. `strip_tags( '<script>something</script>' )` 3761 3759 * will return 'something'. wp_strip_all_tags will return '' 3762 3760 *
Note: See TracChangeset
for help on using the changeset viewer.