diff --git a/src/wp-includes/shortcodes.php b/src/wp-includes/shortcodes.php index 938e796fa7..e0812225a5 100644 --- a/src/wp-includes/shortcodes.php +++ b/src/wp-includes/shortcodes.php @@ -340,7 +340,7 @@ function do_shortcode_tag( $m ) { * * @since 4.7.0 * - * @param false|string $return Short-circuit return value. Either false or the value to replace the shortcode with. + * @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with. * @param string $tag Shortcode name. * @param array|string $attr Shortcode attributes array or empty string. * @param array $m Regular expression match array. diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index 7ee36d7cbc..33549b73e8 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -826,7 +826,7 @@ EOF; // Pass arguments. $arr = array( - 'return' => 'p11', + 'output' => 'p11', 'key' => $str, 'atts' => array( 'a' => 'b', @@ -864,9 +864,9 @@ EOF; return 'p11'; } - public function filter_pre_do_shortcode_tag_attr( $return, $key, $atts, $m ) { + public function filter_pre_do_shortcode_tag_attr( $output, $key, $atts, $m ) { $arr = array( - 'return' => $return, + 'output' => $output, 'key' => $key, 'atts' => $atts, 'm' => $m, @@ -896,7 +896,7 @@ EOF; // Pass arguments. $arr = array( - 'return' => 'foobar', + 'output' => 'foobar', 'key' => $str, 'atts' => array( 'a' => 'b', @@ -926,17 +926,17 @@ EOF; return 'foo'; } - public function filter_do_shortcode_tag_replace( $return ) { - return str_replace( 'oo', 'ee', $return ); + public function filter_do_shortcode_tag_replace( $output ) { + return str_replace( 'oo', 'ee', $output ); } - public function filter_do_shortcode_tag_generate( $return ) { + public function filter_do_shortcode_tag_generate( $output ) { return 'foobar'; } - public function filter_do_shortcode_tag_attr( $return, $key, $atts, $m ) { + public function filter_do_shortcode_tag_attr( $output, $key, $atts, $m ) { $arr = array( - 'return' => $return, + 'output' => $output, 'key' => $key, 'atts' => $atts, 'm' => $m,