Make WordPress Core

Changeset 39665


Ignore:
Timestamp:
01/03/2017 03:57:03 AM (10 years ago)
Author:
dd32
Message:

Shortcodes: Clarify the docs for pre_do_shortcode_tag and do_shortcode_tag.

Props dhanendran.
Fixes #39294.

File:
1 edited

Legend:

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

    r39351 r39665  
    332332         *
    333333         * @param bool|string $return      Short-circuit return value. Either false or the value to replace the shortcode with.
    334          * @param string      $tag         Shortcode name.
    335          * @param array       $attr        Shortcode attributes array,
    336          * @param array       $m           Regular expression match array.
     334         * @param string       $tag         Shortcode name.
     335         * @param array|string $attr        Shortcode attributes array or empty string.
     336         * @param array        $m           Regular expression match array.
    337337         */
    338338        $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
    … …  
    351351         *
    352352         * @param string $output Shortcode output.
    353          * @param string $tag    Shortcode name.
    354          * @param array  $attr   Shortcode attributes array,
    355          * @param array  $m      Regular expression match array.
     353         * @param string       $tag    Shortcode name.
     354         * @param array|string $attr   Shortcode attributes array or empty string.
     355         * @param array        $m      Regular expression match array.
    356356         */
    357357        return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
Note: See TracChangeset for help on using the changeset viewer.