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
Wales Captain Sam Warburton says his team are raring to go as they kick off their Six Nations campaign in Dublin tomorrow.
Liberal Democrat leader Tim Farron has criticised Labour at the party's spring conference in Cardiff.
A Royal Gun Salute was held at Cardiff Castle earlier today to mark the 64th anniversary of the Queen's accession to the throne.