: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
<iframe title="<?php echo esc_attr(Helper::get_file_title($url)); ?>" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" style="<?php echo esc_attr($dimension); ?>; max-width:100%;" src="<?php echo esc_url($url); ?>" data-emsrc="<?php echo esc_url($url); ?>" data-emid="<?php echo esc_attr($id); ?>" class="embedpress-embed-document-pdf <?php echo esc_attr($id); ?>"></iframe>
if (!empty($attributes['powered_by']) && $attributes['powered_by'] === 'yes') {
printf('<p class="embedpress-el-powered">%s</p>', __('Powered By EmbedPress', 'embedpress'));
protected static function is_external_url($url)
return strpos($url, get_site_url()) === false;
protected static function is_pdf($url)
$arr = explode('.', $url);
return end($arr) === 'pdf';