Docs: Add missing parameter and return notations to the DocBlock for the deprecated wp_specialchars() function.

See #32246.

Built from https://develop.svn.wordpress.org/trunk@36026


git-svn-id: http://core.svn.wordpress.org/trunk@35991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-12-19 08:58:25 +00:00
parent 57878dd1b9
commit eb158d65c7
2 changed files with 8 additions and 2 deletions

View File

@ -2048,10 +2048,16 @@ function js_escape( $text ) {
} }
/** /**
* Escaping for HTML blocks. * Legacy escaping for HTML blocks.
* *
* @deprecated 2.8.0 Use esc_html() * @deprecated 2.8.0 Use esc_html()
* @see esc_html() * @see esc_html()
*
* @param string $string String to escape.
* @param string $quote_style Unused.
* @param false|string $charset Unused.
* @param false $double_encode Whether to double encode. Unused.
* @return string Escaped `$string`.
*/ */
function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { function wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) {
_deprecated_function( __FUNCTION__, '2.8', 'esc_html()' ); _deprecated_function( __FUNCTION__, '2.8', 'esc_html()' );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36025'; $wp_version = '4.5-alpha-36026';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.