Ticket #26697: 26697.2.diff
File 26697.2.diff, 909 bytes (added by , 11 years ago) |
---|
-
wp-includes/media.php
724 724 unset( $attr['orderby'] ); 725 725 } 726 726 727 extract(shortcode_atts(array(727 $defaults_atts = array( 728 728 'order' => 'ASC', 729 729 'orderby' => 'menu_order ID', 730 730 'id' => $post ? $post->ID : 0, … … 735 735 'size' => 'thumbnail', 736 736 'include' => '', 737 737 'exclude' => '', 738 'link' => '' 739 ), $attr, 'gallery')); 738 'link' => '', 739 ); 740 741 if ( current_theme_supports( 'html5', 'gallery' ) ) { 742 $defaults_atts = wp_parse_args( array( 743 'itemtag' => 'figure', 744 'icontag' => 'div', 745 'captiontag' => 'figcaption', 746 ), $defaults_atts ); 747 } 748 749 extract( shortcode_atts( $defaults_atts, $attr, 'gallery' ) ); 740 750 741 751 $id = intval($id); 742 752 if ( 'RAND' == $order )