Changeset 4820 for trunk/includes/core/template-functions.php
- Timestamp:
- 03/25/2013 08:38:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/template-functions.php
r4763 r4820 69 69 70 70 // Continue if template is empty 71 if ( empty( $template_name ) ) 71 if ( empty( $template_name ) ) { 72 72 continue; 73 } 73 74 74 75 // Trim off any slashes from the template name … … 79 80 80 81 // Continue if $template_location is empty 81 if ( empty( $template_location ) ) 82 if ( empty( $template_location ) ) { 82 83 continue; 84 } 83 85 84 86 // Check child theme first … … 90 92 } 91 93 94 /** 95 * This action exists only to follow the stardard bbPress coding convention, 96 * and should not be used to short-circuit any part of the template locator. 97 * 98 * If you want to override a specific template part, please either filter 99 * 'bbp_get_template_part' or add a new location to the template stack. 100 */ 101 do_action( 'bbp_locate_template', $located, $template_name, $template_names, $template_locations, $load, $require_once ); 102 92 103 // Maybe load the template if one was located 93 if ( ( true == $load ) && !empty( $located ) ) 104 if ( ( true == $load ) && !empty( $located ) ) { 94 105 load_template( $located, $require_once ); 106 } 95 107 96 108 return $located;
Note: See TracChangeset
for help on using the changeset viewer.