Changeset 55119
- Timestamp:
- 01/23/2023 04:33:57 PM (21 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r54319 r55119 341 341 * @since 4.7.0 342 342 * 343 * @param false|string $ returnShort-circuit return value. Either false or the value to replace the shortcode with.343 * @param false|string $output Short-circuit return value. Either false or the value to replace the shortcode with. 344 344 * @param string $tag Shortcode name. 345 345 * @param array|string $attr Shortcode attributes array or empty string. -
trunk/tests/phpunit/tests/shortcode.php
r53948 r55119 827 827 // Pass arguments. 828 828 $arr = array( 829 ' return' => 'p11',829 'output' => 'p11', 830 830 'key' => $str, 831 831 'atts' => array( … … 865 865 } 866 866 867 public function filter_pre_do_shortcode_tag_attr( $ return, $key, $atts, $m ) {867 public function filter_pre_do_shortcode_tag_attr( $output, $key, $atts, $m ) { 868 868 $arr = array( 869 ' return' => $return,869 'output' => $output, 870 870 'key' => $key, 871 871 'atts' => $atts, … … 897 897 // Pass arguments. 898 898 $arr = array( 899 ' return' => 'foobar',899 'output' => 'foobar', 900 900 'key' => $str, 901 901 'atts' => array( … … 927 927 } 928 928 929 public function filter_do_shortcode_tag_replace( $ return) {930 return str_replace( 'oo', 'ee', $ return);931 } 932 933 public function filter_do_shortcode_tag_generate( $ return) {929 public function filter_do_shortcode_tag_replace( $output ) { 930 return str_replace( 'oo', 'ee', $output ); 931 } 932 933 public function filter_do_shortcode_tag_generate( $output ) { 934 934 return 'foobar'; 935 935 } 936 936 937 public function filter_do_shortcode_tag_attr( $ return, $key, $atts, $m ) {937 public function filter_do_shortcode_tag_attr( $output, $key, $atts, $m ) { 938 938 $arr = array( 939 ' return' => $return,939 'output' => $output, 940 940 'key' => $key, 941 941 'atts' => $atts,
Note: See TracChangeset
for help on using the changeset viewer.