Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Vancouver, Canada
- Posts:
- 1,567
- Plugin Contributions:
- 58
[Not a Bug] USPS ® ™ characters
In January, 2011, you released a new version which takes into account the new requirements for the ® and ™ characters required to be displayed for each shipping method.
The update also adds the ® and ™ characters into the id attribute of the radio button and causes it to not be able to show as selected if you come back to the page.
Although not the ideal solution, you need something like this:
// fix new trademark and reg
$type = str_replace('<sup>&reg;</sup>', '<sup>®</sup>', $type);
$type = str_replace('<sup>&trade;</sup>', '<sup>™</sup>', $type);
$title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
// get rid of it completely for use in the XHTML
$type = str_replace('<sup>®</sup>', '', $type);
$type = str_replace('<sup>™</sup>', '', $type);