WordPress.org

Make WordPress Core

Changeset 34744


Ignore:
Timestamp:
10/01/2015 05:31:58 PM (5 years ago)
Author:
wonderboymusic
Message:

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

Props miqrogroove.
See #23307.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/shortcodes.php

    r34134 r34744  
    444444 *
    445445 * @param string $text
    446  * @return array List of attributes and their value.
     446 * @return array|string List of attribute values.
     447 *                      Returns empty array if trim( $text ) == '""'.
     448 *                      Returns empty string if trim( $text ) == ''.
     449 *                      All other matches are checked for not empty().
    447450 */
    448451function shortcode_parse_atts($text) {
Note: See TracChangeset for help on using the changeset viewer.