~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/shortcodes.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/**
3
 
 * WordPress API for creating bbcode like tags or what WordPress calls
4
 
 * "shortcodes." The tag and attribute parsing or regular expression code is
 
3
 * WordPress API for creating bbcode-like tags or what WordPress calls
 
4
 * "shortcodes". The tag and attribute parsing or regular expression code is
5
5
 * based on the Textpattern tag parser.
6
6
 *
7
7
 * A few examples are below:
537
537
                        $out[$name] = $default;
538
538
        }
539
539
        /**
540
 
         * Filter a shortcode's default attributes.
 
540
         * Filters a shortcode's default attributes.
541
541
         *
542
542
         * If the third parameter of the shortcode_atts() function is present then this filter is available.
543
543
         * The third parameter, $shortcode, is the name of the shortcode.