Changeset 28413 for trunk/src/wp-includes/shortcodes.php
- Timestamp:
- 05/15/2014 03:27:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r27394 r28413 66 66 * // [bartag foo="bar"] 67 67 * function bartag_func($atts) { 68 * extract(shortcode_atts(array(68 * $args = shortcode_atts(array( 69 69 * 'foo' => 'no foo', 70 70 * 'baz' => 'default baz', 71 * ), $atts) );72 * 73 * return "foo = {$ foo}";71 * ), $atts); 72 * 73 * return "foo = {$args['foo']}"; 74 74 * } 75 75 * add_shortcode('bartag', 'bartag_func');
Note: See TracChangeset
for help on using the changeset viewer.