first commit

This commit is contained in:
2024-12-23 22:14:28 +01:00
commit f4cedfc60e
6641 changed files with 2890956 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class bodhi_svg_attributes extends \enshrined\svgSanitize\data\AllowedAttributes {
/**
* Returns an array of attributes
*
* @return array
*/
public static function getAttributes() {
/**
* var array Attributes that are allowed.
*/
return apply_filters( 'svg_allowed_attributes', parent::getAttributes() );
}
}

View File

@@ -0,0 +1,20 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class bodhi_svg_tags extends \enshrined\svgSanitize\data\AllowedTags {
/**
* Returns an array of tags
*
* @return array
*/
public static function getTags() {
/**
* var array Tags that are allowed.
*/
return apply_filters( 'svg_allowed_tags', parent::getTags() );
}
}