Changeset 28923 for trunk/src/wp-includes/media.php
- Timestamp:
- 06/30/2014 11:15:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r28901 r28923 2083 2083 * @since 2.9.0 2084 2084 * 2085 * @param string $url Optional. The URL that should be embedded. Default empty. 2086 * 2085 2087 * @return array Default embed parameters. 2086 2088 */ 2087 function wp_embed_defaults( ) {2089 function wp_embed_defaults( $url = '' ) { 2088 2090 if ( ! empty( $GLOBALS['content_width'] ) ) 2089 2091 $width = (int) $GLOBALS['content_width']; … … 2099 2101 * @since 2.9.0 2100 2102 * 2101 * @param int $width Width of the embed in pixels. 2102 * @param int $height Height of the embed in pixels. 2103 */ 2104 return apply_filters( 'embed_defaults', compact( 'width', 'height' ) ); 2103 * @param int $width Width of the embed in pixels. 2104 * @param int $height Height of the embed in pixels. 2105 * @param string $url The URL that should be embedded. 2106 */ 2107 return apply_filters( 'embed_defaults', compact( 'width', 'height' ), $url ); 2105 2108 } 2106 2109
Note: See TracChangeset
for help on using the changeset viewer.