Make WordPress Core

Ticket #60581: 60581.diff

File 60581.diff, 552 bytes (added by david.binda, 2 years ago)
  • src/wp-includes/media.php

     
    50655065                                $srcs = array();
    50665066
    50675067                                $shortcode_attrs = shortcode_parse_atts( $shortcode[3] );
    5068                                 if ( ! is_array( $shortcode_attrs ) ) {
    5069                                         $shortcode_attrs = array();
    5070                                 }
    50715068
    50725069                                // Specify the post ID of the gallery we're viewing if the shortcode doesn't reference another post already.
    50735070                                if ( ! isset( $shortcode_attrs['id'] ) ) {