Skip to content

Commit

Permalink
Merge pull request #31 from BeAPI/issue/25
Browse files Browse the repository at this point in the history
Skip type media to display svg because we use the URL
  • Loading branch information
ecorica authored Jan 31, 2024
2 parents ab360c0 + d98fe63 commit 3ba6a59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fields/acf-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ public function parse_svg() {
* @param string $allowed_tags : Passed directly to strip_tags
*
* @return string
* @author david-treblig
* @since 2.0.1
*
* @author david-treblig
*/
$allowed_tags = apply_filters( 'acf_svg_icon_svg_parse_tags', '<symbol><g>' );

Expand Down Expand Up @@ -284,7 +284,8 @@ public function display_svg() {
}

foreach ( $files as $file ) {
if ( ! is_file( $file['file'] ) ) {
// Ignore file type "media" because we use the URL and not the svg embeded.
if ( 'media' === $file['type'] || ! is_file( $file['file'] ) ) {
continue;
}

Expand Down

0 comments on commit 3ba6a59

Please sign in to comment.