Skip to content

Commit

Permalink
Merge pull request #218 from EHLOVader/fix-wp-media-conflict
Browse files Browse the repository at this point in the history
Remove the wp enqueue media in avatar default filter
  • Loading branch information
dkotter authored Jun 30, 2023
2 parents 52f4936 + 4240226 commit 801cc93
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions includes/class-simple-local-avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -1436,9 +1436,6 @@ private function clear_user_avatar_cache( $local_avatars, $user_id, $media_id )
* @return array Default options of avatar.
*/
public function add_avatar_default_field( $defaults ) {
if ( ! did_action( 'wp_enqueue_media' ) ) {
wp_enqueue_media();
}
$default_avatar_file_url = '';
$default_avatar_file_id = get_option( 'simple_local_avatar_default', '' );
if ( ! empty( $default_avatar_file_id ) ) {
Expand Down

0 comments on commit 801cc93

Please sign in to comment.