Changeset 24129 for trunk/wp-includes/media.php
- Timestamp:
- 04/29/2013 02:48:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r24122 r24129 1909 1909 function get_content_media( $type, &$content, $html = true, $remove = false, $limit = 0 ) { 1910 1910 $items = array(); 1911 $matches = array();1912 1911 1913 1912 if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) { … … 1928 1927 return $items; 1929 1928 1930 $src = '';1931 1929 $data = array(); 1932 1930 … … 1959 1957 function get_embedded_media( $type, &$content, $remove = false, $limit = 0 ) { 1960 1958 $html = array(); 1961 $matches = '';1962 1959 1963 1960 foreach ( array( $type, 'object', 'embed', 'iframe' ) as $tag ) { … … 2207 2204 */ 2208 2205 function get_content_images( &$content, $html = true, $remove = false, $limit = 0 ) { 2209 $matches = array();2210 2206 $tags = array(); 2211 2207 $captions = array(); … … 2256 2252 return $tags; 2257 2253 2258 $src = '';2259 2254 $srcs = array(); 2260 2255 … … 2301 2296 */ 2302 2297 function get_content_galleries( &$content, $html = true, $remove = false, $limit = 0 ) { 2303 $src = '';2304 2298 $galleries = array(); 2305 $matches = array();2306 2299 2307 2300 if ( preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ) && ! empty( $matches ) ) { … … 2494 2487 2495 2488 $count = 1; 2496 $matches = array();2497 2489 $content = $post->post_content; 2498 2490
Note: See TracChangeset
for help on using the changeset viewer.