Changeset 24129
- Timestamp:
- 04/29/2013 02:48:31 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r24051 r24129 3265 3265 } 3266 3266 3267 $match = array();3268 3267 $found = false; 3269 3268 while ( preg_match('/%[a-f0-9]{2}/i', $filtered, $match) ) { -
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 -
trunk/wp-includes/post-formats.php
r24094 r24129 581 581 } 582 582 583 $matches = array();584 583 $matched = preg_match( $newline_regex, $line, $matches ); 585 584 if ( ! $matched ) … … 710 709 return ''; 711 710 712 $matches = array();713 711 if ( ! preg_match( '/<blockquote[^>]*>(.+?)<\/blockquote>/is', $content, $matches ) ) { 714 712 $quote = $content; … … 783 781 if ( empty( $content ) ) 784 782 return ''; 785 786 $matches = array();787 783 788 784 // the content is a URL … … 884 880 $output = ''; 885 881 $has_teaser = false; 886 $matches = array();887 882 888 883 // If post password required and it doesn't match the cookie. -
trunk/wp-includes/post-template.php
r23975 r24129 186 186 $output = ''; 187 187 $has_teaser = false; 188 $matches = array();189 188 190 189 // If post password required and it doesn't match the cookie. -
trunk/wp-includes/shortcodes.php
r23729 r24129 153 153 function has_shortcode( $content, $tag ) { 154 154 if ( shortcode_exists( $tag ) ) { 155 $matches = array();156 155 preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); 157 156 if ( empty( $matches ) )
Note: See TracChangeset
for help on using the changeset viewer.