[theme-reviewers] Functions.php Worm

Chip Bennett chip at chipbennett.net
Wed Oct 13 16:57:04 UTC 2010

That seems like a more efficient approach, yeah: load the string once, then
perform many checks.

What would be nice would be the ability to control the error message that
gets output for each check, to point the developer to 1) the specific Theme
Review Guideline, and/or 2) the Codex reference, for each check.

(Thanks to Pross, we have most of those links collated already.)


On Wed, Oct 13, 2010 at 11:53 AM, Andrew Nacin <wp at andrewnacin.com> wrote:

> On Wed, Oct 13, 2010 at 12:35 PM, Chip Bennett <chip at chipbennett.net>wrote:
>> I like the implementation, but we'll have to be careful about the
>> assumptions.
>> For example: wp_footer() will NOT always be in footer.php. It can
>> (legitimately) be in index.php (or any hierarchical template file
>> (archive.php, page.php, attachment.php, 404.php, etc.).
> I'm sure it was just a quick example. I think what we'd end up doing is
> loading all of the PHP files into a string, and all the CSS files into a
> string, etc., and then do string searches on whichever we need to depending
> on the check.
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20101013/4b817bf8/attachment-0001.htm>

More information about the theme-reviewers mailing list