safe-svg-attributes.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | class safe_svg_attributes extends \enshrined\svgSanitize\data\AllowedAttributes { |
| 5 | |
| 6 | /** |
| 7 | * Returns an array of attributes |
| 8 | * |
| 9 | * @return array |
| 10 | */ |
| 11 | public static function getAttributes() { |
| 12 | |
| 13 | /** |
| 14 | * var array Attributes that are allowed. |
| 15 | */ |
| 16 | return apply_filters( 'svg_allowed_attributes', parent::getAttributes() ); |
| 17 | } |
| 18 | } |