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:
parent
875ed40ffb
commit
3c50d18785
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue