Changeset 44569 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 01/12/2019 03:19:23 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r44136 r44569 44 44 // [bartag foo="bar"] 45 45 function _shortcode_bartag( $atts ) { 46 extract( 47 shortcode_atts( 48 array( 49 'foo' => 'no foo', 50 'baz' => 'default baz', 51 ), 52 $atts, 53 'bartag' 54 ) 55 ); 56 57 return "foo = {$foo}"; 46 $processed_atts = shortcode_atts( 47 array( 48 'foo' => 'no foo', 49 'baz' => 'default baz', 50 ), 51 $atts, 52 'bartag' 53 ); 54 55 return "foo = {$processed_atts['foo']}"; 58 56 } 59 57
Note: See TracChangeset
for help on using the changeset viewer.