A 42-year-old man from Port Talbot has admitted posting abusive Twitter messages about the death of school teacher Ann Maguire.
Robert Riley appeared before magistrates in Leeds today where he admitted sending a message of a grossly offensive, abusive or malicious character.
Mr Riley has been granted bail and is due to be sentenced at Swansea Magistrates' Court on Thursday.
He was the second person to be charged with the offence in the wake of the death of Mrs Maguire, who was stabbed to death in her classroom at Corpus Christi Catholic College in Leeds, a week ago.
More top news
It'll be a mainly dry but chilly night for most of us with a risk of patchy frost, fog and low cloud later.
Ched Evan's fiancé Natasha Massey talks for the first time about why she has stood by him for the last five years.
Leanne Wood has said she accepts the referendum result but that it has left Wales with a weak position for negotiation.