get_template_part() doesn't pass variables
|Reported by:||Looimaster||Owned by:|
If I'm not mistaken neither locate_template(); nor get_template_part(); passes variables. This is different than PHP's include() and thus causes unexpected behavior.
When someone includes a file then there's a 95% chance that they will want to use its variables but it's not possible at this moment.