Drupal Association members fund grants that make connections all over the world.
When using a pattern for a theme function (i.e,
theme(array('foo__bar', 'foo'), ...);) the preprocess functions aren't being retained of the pattern has been declared.
The easiest way to replicate this is to install Views 2 alpha4. Make sure the frontpage view is enabled. Visit 'frontpage'.
Now, copy views-view-unformatted.tpl.php to your theme directory, and add a piece of text to it to identify our theming function. Clear your cache and reload. This works fine.
Rename this to views-view-unformatted--frontpage.tpl.php and clear cache. Now you'll see that the variables have disappeared.
This patch will ensure that previously discovered preprocess functions will get carried forward; and that new preprocess functions will still be discovered by keeping the 'original hook' name around and checking it during preprocess discovery.
(this is critical since it totally breaks the named-overrides that this feature was designed for).
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch drupal-include_base_processor_files-241570.patch. Unable to apply patch. See the log in the details link for more information. View
PASSED: [[SimpleTest]]: [MySQL] 27,361 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 18,746 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 17,903 pass(es). View
PASSED: [[SimpleTest]]: [MySQL] 17,640 pass(es). View