Changeset 45607 for trunk/tests/phpunit/tests/shortcode.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/shortcode.php
r44569 r45607 39 39 // [footag foo="bar"] 40 40 function _shortcode_footag( $atts ) { 41 return @"foo = {$atts['foo']}"; 41 $foo = isset( $atts['foo'] ) ? $atts['foo'] : ''; 42 return "foo = $foo"; 42 43 } 43 44 … … 445 446 function _filter_atts2( $out, $pairs, $atts ) { 446 447 // If foo attribute equals "foo1", change it to be default value 447 if ( isset( $out['foo'] ) && 'foo1' == $out['foo'] ) {448 if ( isset( $out['foo'] ) && 'foo1' === $out['foo'] ) { 448 449 $out['foo'] = $pairs['foo']; 449 450 }
Note: See TracChangeset
for help on using the changeset viewer.