Skip to content

Commit

Permalink
Added compatible with SVG Support plugin. Resolved #39.
Browse files Browse the repository at this point in the history
  • Loading branch information
yadenis committed Jan 7, 2021
1 parent 9376ff9 commit cab8c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-dco-ca.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public function filter_upload_mimes( $mimes ) {
* @since 1.1.0
*/
public function enable_filter_upload() {
add_filter( 'upload_mimes', array( $this, 'filter_upload_mimes' ) );
add_filter( 'upload_mimes', array( $this, 'filter_upload_mimes' ), 999 );
}

/**
Expand All @@ -563,7 +563,7 @@ public function enable_filter_upload() {
* @since 1.1.0
*/
public function disable_filter_upload() {
remove_filter( 'upload_mimes', array( $this, 'filter_upload_mimes' ) );
remove_filter( 'upload_mimes', array( $this, 'filter_upload_mimes' ), 999 );
}

/**
Expand Down

0 comments on commit cab8c24

Please sign in to comment.