Ticket #11436: 11436.patch

File 11436.patch, 524 bytes (added by SergeyBiryukov, 15 months ago)
  • wp-includes/class-oembed.php

     
    248248                        case 'video': 
    249249                        case 'rich': 
    250250                                $return = ( !empty($data->html) ) ? $data->html : false; 
     251                                if ( is_admin_bar_showing() ) 
     252                                        $return = str_replace('</param><embed', '</param><param name="wmode" value="opaque"></param><embed wmode="opaque"', $return ); 
    251253                                break; 
    252254 
    253255                        case 'link':