diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index 0eb8fa84..9a637330 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -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 ) ) {