Shortcodes: clarify the @return docs for shortcode_parse_atts().
Props miqrogroove. See #23307. Built from https://develop.svn.wordpress.org/trunk@34744 git-svn-id: http://core.svn.wordpress.org/trunk@34709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user