Shortcodes: Clarify the docs for `pre_do_shortcode_tag` and `do_shortcode_tag`.
Props dhanendran. Fixes #39294. Built from https://develop.svn.wordpress.org/trunk@39665 git-svn-id: http://core.svn.wordpress.org/trunk@39605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
324e79a506
commit
5eb2277dce
|
@ -332,7 +332,7 @@ function do_shortcode_tag( $m ) {
|
|||
*
|
||||
* @param bool|string $return Short-circuit return value. Either false or the value to replace the shortcode with.
|
||||
* @param string $tag Shortcode name.
|
||||
* @param array $attr Shortcode attributes array,
|
||||
* @param array|string $attr Shortcode attributes array or empty string.
|
||||
* @param array $m Regular expression match array.
|
||||
*/
|
||||
$return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m );
|
||||
|
@ -351,7 +351,7 @@ function do_shortcode_tag( $m ) {
|
|||
*
|
||||
* @param string $output Shortcode output.
|
||||
* @param string $tag Shortcode name.
|
||||
* @param array $attr Shortcode attributes array,
|
||||
* @param array|string $attr Shortcode attributes array or empty string.
|
||||
* @param array $m Regular expression match array.
|
||||
*/
|
||||
return apply_filters( 'do_shortcode_tag', $output, $tag, $attr, $m );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.8-alpha-39663';
|
||||
$wp_version = '4.8-alpha-39665';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue