Commit Graph

5 Commits

Author SHA1 Message Date
Rodrigo Primo 5116cd0bd3 Replace named HTML entity with decimal HTML entity
WP `esc_html()` function escapes the valid named HTML entity `ă` and this is causing problems for some state names (see issue #18355). This commit provides a workaround by replacing `ă` with its decimal HTML entity version `ă`.

The WP core ticket below added a whilelist of named HTML entity but there is no explanation why some named HTML entities, like `ă`, were not included in the list and thus are escaped:

https://core.trac.wordpress.org/ticket/12284

Fixes #18355
2018-01-05 12:08:14 -02:00
Rodrigo Primo 9818ed10f9 PHPCS fixes
Fixed one violation in each file but left the filename violation (filenames should be lowercase) to fix another time for all state files at once.
2018-01-05 12:06:55 -02:00
Alexander Minza 2307febfa1 Fixed Moldova states 2017-12-30 14:34:12 +02:00
Claudio Sanches 8bdc9a6a1d Fixed coding standards 2017-12-20 15:49:50 -02:00
Alexander Minza fca5ef8dd8 Added Moldova states 2017-12-19 23:44:25 +02:00