[theme-reviewers] Bug with Theme Check
kovshenin at gmail.com
Wed Oct 29 01:29:03 UTC 2014
On Sun, Oct 26, 2014 at 5:09 PM, Otto <otto at ottodestruct.com> wrote:
> If you have a patch for the regex which can eliminate this, be sure to
> email me about it. Happy to make adjustments. :)
> On Sun, Oct 26, 2014 at 6:44 PM, Alex Vasquez <alexjvas at gmail.com> wrote:
>> Hey folks.
>> Found an issue with the theme check plugin.
>> Seems there's an issue on line 21 of 'theme-check/checks/customizer.php'.
>> The issue that occurs is if your default value has a semi-colon, the
>> sanitize_callback function, which uses regex pattern matching, will stop
>> matching when it encounters the semi-colon in the default value. A work
>> around for this is to put the order of the sanitize_callback before the
>> default value.
>> Big ups to Konstantin Kovshenin for finding the bug and workaround.
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers