updated plugin GP Premium
version 2.4.0
This commit is contained in:
@ -500,4 +500,28 @@ class GeneratePress_Elements_Helper {
|
||||
|
||||
return apply_filters( 'generate_hooks_list', $hooks );
|
||||
}
|
||||
|
||||
/**
|
||||
* Expand the wp_kses_post sanitization function to allow iframe HTML tags
|
||||
*
|
||||
* @param array $tags The allowed tags, attributes, and/or attribute values.
|
||||
* @param string $context Context to judge allowed tags by. Allowed values are 'post'.
|
||||
* @return array
|
||||
*/
|
||||
public static function expand_allowed_html( $tags, $context ) {
|
||||
if ( ! isset( $tags['iframe'] ) ) {
|
||||
$tags['iframe'] = [
|
||||
'src' => true,
|
||||
'height' => true,
|
||||
'width' => true,
|
||||
'frameborder' => true,
|
||||
'allowfullscreen' => true,
|
||||
'title' => true,
|
||||
];
|
||||
}
|
||||
|
||||
$tags = apply_filters( 'generate_dynamic_content_allowed_html', $tags, $context );
|
||||
|
||||
return $tags;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user