| @@ -152,9 +152,9 @@ | ||
| 152 | 152 | * is null. If not defined uses image size key |
| 153 | 153 | * as the image key. |
| 154 | 154 | */ |
| 155 | 155 | public static function print_attachment_image_html( array $settings, $image_size_key = 'image', $image_key = null ) { |
| 156 | - echo wp_kses_post( self::get_attachment_image_html( $settings, $image_size_key, $image_key ) ); | |
| 156 | + Utils::print_wp_kses_extended( self::get_attachment_image_html( $settings, $image_size_key, $image_key ), [ 'image' ] ); | |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |
| 160 | 160 | * Get all image sizes. |