From 39825983050349977da84661a39fd79d78428de7 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 21 Aug 2015 18:36:24 +0000 Subject: [PATCH] Doc block for`_wp_specialchars`: `$quote_style` can also be `string` ('single' or 'double') See #33491. Built from https://develop.svn.wordpress.org/trunk@33700 git-svn-id: http://core.svn.wordpress.org/trunk@33667 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 1 - wp-includes/formatting.php | 12 ++++++++---- wp-includes/version.php | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 70f731e5ba..4c3740f152 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5132,7 +5132,6 @@ class wp_xmlrpc_server extends IXR_Server { break; default: return new IXR_Error( 401, __( 'Invalid post type' ) ); - break; } $post_author = $content_struct['wp_author_id']; } diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index fa9551a3e4..a03d91eca9 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -814,10 +814,14 @@ function seems_utf8( $str ) { * * @staticvar string $_charset * - * @param string $string The text which is to be encoded. - * @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. - * @param string $charset Optional. The character encoding of the string. Default is false. - * @param bool $double_encode Optional. Whether to encode existing html entities. Default is false. + * @param string $string The text which is to be encoded. + * @param int|string $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. + * @param string $charset Optional. The character encoding of the string. Default is false. + * @param bool $double_encode Optional. Whether to encode existing html entities. Default is false. * @return string The encoded text with HTML entities. */ function _wp_specialchars( $string, $quote_style = ENT_NOQUOTES, $charset = false, $double_encode = false ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 96b9918c7c..6f0c56a77c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33699'; +$wp_version = '4.4-alpha-33700'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.