Ticket #51362: 51362.diff
File 51362.diff, 976 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/media.php
379 379 380 380 $title = $title ? 'title="' . esc_attr( $title ) . '" ' : ''; 381 381 382 $class = 'align' . esc_attr( $align ) . ' size-' . esc_attr( $size ) . ' wp-image-' . $id; 382 $size_class = is_array( $size ) ? implode( 'x', $size ) : $size; 383 $class = 'align' . esc_attr( $align ) . ' size-' . esc_attr( $size_class ) . ' wp-image-' . $id; 383 384 384 385 /** 385 386 * Filters the value of the attachment's image tag class attribute. … … 2337 2338 </style>\n\t\t"; 2338 2339 } 2339 2340 2340 $size_class = sanitize_html_class( $atts['size'] );2341 $size_class = sanitize_html_class( is_array( $atts['size'] ) ? implode( 'x', $atts['size'] ) : $atts['size'] ); 2341 2342 $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; 2342 2343 2343 2344 /**