Shortcodes: clarify the `@return` docs for `shortcode_parse_atts()`.

Props miqrogroove.
See #23307.


git-svn-id: https://develop.svn.wordpress.org/trunk@34744 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-10-01 17:31:58 +00:00
parent 875ed40ffb
commit 3c50d18785
1 changed files with 4 additions and 1 deletions

View File

@ -443,7 +443,10 @@ function unescape_invalid_shortcodes( $content ) {
* @since 2.5.0
*
* @param string $text
* @return array List of attributes and their value.
* @return array|string List of attribute values.
* Returns empty array if trim( $text ) == '""'.
* Returns empty string if trim( $text ) == ''.
* All other matches are checked for not empty().
*/
function shortcode_parse_atts($text) {
$atts = array();