Make WordPress Core


Ignore:
Timestamp:
08/21/2015 06:35:31 PM (9 years ago)
Author:
wonderboymusic
Message:

Doc block for_wp_specialchars: $quote_style can also be string ('single' or 'double')

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r33624 r33700  
    815815 * @staticvar string $_charset
    816816 *
    817  * @param string $string         The text which is to be encoded.
    818  * @param int    $quote_style    Optional. Converts double quotes if set to ENT_COMPAT, both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES. Also compatible with old values; converting single quotes if set to 'single', double if set to 'double' or both if otherwise set. Default is ENT_NOQUOTES.
    819  * @param string $charset        Optional. The character encoding of the string. Default is false.
    820  * @param bool   $double_encode  Optional. Whether to encode existing html entities. Default is false.
     817 * @param string     $string         The text which is to be encoded.
     818 * @param int|string $quote_style    Optional. Converts double quotes if set to ENT_COMPAT,
     819 *                                   both single and double if set to ENT_QUOTES or none if set to ENT_NOQUOTES.
     820 *                                   Also compatible with old values; converting single quotes if set to 'single',
     821 *                                   double if set to 'double' or both if otherwise set.
     822 *                                   Default is ENT_NOQUOTES.
     823 * @param string     $charset        Optional. The character encoding of the string. Default is false.
     824 * @param bool       $double_encode  Optional. Whether to encode existing html entities. Default is false.
    821825 * @return string The encoded text with HTML entities.
    822826 */
Note: See TracChangeset for help on using the changeset viewer.