When setting up a slave and selecting 'Synchronize databases with master' from the replication tab the database names are not quoted.
If there are databases on the master with hyphen then phpmyadmin generates an invalid query.
I found the PMA_backquote() function used elsewhere in phpmyadmin, and assume this is the standard way of quoting database/table names with backticks
Patch to quote database names with backticks
The patch seems OK. Did you test this?
I've tested it, after applying it I was able to perform the sync
Your patch was merged in the repository, thanks.