Changeset 23499
- Timestamp:
- 02/27/2013 10:10:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-formats.php
r23468 r23499 301 301 'link_class' => '', 302 302 'image_class' => '', 303 'gallery' => '[gallery]',304 'audio' => '',305 'video' => ''306 303 ); 307 304 … … 377 374 } 378 375 379 if ( empty( $meta['gallery'] ) && ! empty( $compat['gallery'] ) ) { 380 $format_output .= $compat['gallery']; 381 } elseif ( ! empty( $meta['gallery'] ) ) { 376 if ( ! empty( $meta['gallery'] ) ) { 382 377 $format_output .= $meta['gallery']; 383 378 } … … 389 384 $matches = preg_match( $shortcode_regex, $content ); 390 385 if ( ! $matches || $format !== $matches[2] ) { 391 if ( empty( $meta['media'] ) && ! empty( $compat[$format] ) ) { 392 $format_output .= $compat[$format]; 393 } elseif ( ! empty( $meta['media'] ) ) { 386 if ( ! empty( $meta['media'] ) ) { 394 387 // the metadata is a shortcode or an embed code 395 388 if ( preg_match( $shortcode_regex, $meta['media'] ) || preg_match( '#<[^>]+>#', $meta['media'] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.