# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\Users\win\Documents\Programming\WP\trunk\wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: general-template.php
--- general-template.php Base (BASE)
+++ general-template.php Locally Modified (Based On LOCAL)
@@ -161,12 +161,23 @@
 	 */
 	do_action( "get_template_part_{$slug}", $slug, $name );
 
+        $import_dirs = array();
+        $import_dirs = apply_filters('template_part_import_directories', $import_dirs);
+        $import_dirs[] = "";
+        
 	$templates = array();
 	$name = (string) $name;
-	if ( '' !== $name )
-		$templates[] = "{$slug}-{$name}.php";
+	if ( '' !== $name ){
+            for( $i = 0; $i < count($import_dirs); $i++ ){
+                $templates[] = "{$import_dirs[$i]}/{$slug}-{$name}.php";
+                $templates[] = "{$import_dirs[$i]}/{$slug}.php";
+            }
+        } else {
+            for( $i = 0; $i < count($import_dirs); $i++ ){
+                $templates[] = "{$import_dirs[$i]}/{$slug}.php";
+            }
+        }
 
-	$templates[] = "{$slug}.php";
 
 	locate_template($templates, true, false);
 }
