Changeset 51816 for trunk/src/wp-includes/media.php
- Timestamp:
- 09/15/2021 07:05:20 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/media.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r51230 r51816 2086 2086 * @since 3.9.0 The `class` attribute was added. 2087 2087 * @since 5.1.0 The `caption_id` attribute was added. 2088 * @since 5.9.0 The `$content` parameter default value changed from `null` to `''`. 2088 2089 * 2089 2090 * @param array $attr { … … 2098 2099 * @type string $class Additional class name(s) added to the caption container. 2099 2100 * } 2100 * @param string $content Shortcode content.2101 * @param string $content Optional. Shortcode content. Default empty string. 2101 2102 * @return string HTML content to display the caption. 2102 2103 */ 2103 function img_caption_shortcode( $attr, $content = null) {2104 function img_caption_shortcode( $attr, $content = '' ) { 2104 2105 // New-style shortcode with the caption inside the shortcode with the link and image tags. 2105 2106 if ( ! isset( $attr['caption'] ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)