Ticket #13239: 13239.c2c.diff
File 13239.c2c.diff, 852 bytes (added by , 14 years ago) |
---|
-
wp-includes/theme.php
1045 1045 if ( !is_array($template_names) ) 1046 1046 return ''; 1047 1047 1048 $template_names = apply_filters( 'locate_template', $template_names, $load, $require_once ); 1049 1048 1050 $located = ''; 1049 1051 foreach ( $template_names as $template_name ) { 1052 $template_name = apply_filters( "locate_template-$template_name", $template_name, $load, $require_once ); 1050 1053 if ( !$template_name ) 1051 1054 continue; 1052 1055 if ( file_exists(STYLESHEETPATH . '/' . $template_name)) { … … 1058 1061 } 1059 1062 } 1060 1063 1064 $located = apply_filters( 'locate_template_located', $located, $template_names, $load, $require_once ); 1065 1061 1066 if ( $load && '' != $located ) 1062 1067 load_template( $located, $require_once ); 1063 1068