Changeset 44725
- Timestamp:
- 02/06/2019 06:36:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r44678 r44725 17 17 * 18 18 * @since 1.5.0 19 * @since 5.1.0 Added the return value.20 19 * 21 20 * @param string $name The name of the specialised header. 22 * @return string The template filename if one is located.23 21 */ 24 22 function get_header( $name = null ) { … … 41 39 $templates[] = 'header.php'; 42 40 43 returnlocate_template( $templates, true );41 locate_template( $templates, true ); 44 42 } 45 43 … … 54 52 * 55 53 * @since 1.5.0 56 * @since 5.1.0 Added the return value.57 54 * 58 55 * @param string $name The name of the specialised footer. 59 * @return string The template filename if one is located.60 56 */ 61 57 function get_footer( $name = null ) { … … 78 74 $templates[] = 'footer.php'; 79 75 80 returnlocate_template( $templates, true );76 locate_template( $templates, true ); 81 77 } 82 78 … … 91 87 * 92 88 * @since 1.5.0 93 * @since 5.1.0 Added the return value.94 89 * 95 90 * @param string $name The name of the specialised sidebar. 96 * @return string The template filename if one is located.97 91 */ 98 92 function get_sidebar( $name = null ) { … … 115 109 $templates[] = 'sidebar.php'; 116 110 117 returnlocate_template( $templates, true );111 locate_template( $templates, true ); 118 112 } 119 113 … … 135 129 * 136 130 * @since 3.0.0 137 * @since 5.1.0 Added the return value.138 131 * 139 132 * @param string $slug The slug name for the generic template. 140 133 * @param string $name The name of the specialised template. 141 * @return string The template filename if one is located.142 134 */ 143 135 function get_template_part( $slug, $name = null ) { … … 163 155 $templates[] = "{$slug}.php"; 164 156 165 returnlocate_template( $templates, true, false );157 locate_template( $templates, true, false ); 166 158 } 167 159
Note: See TracChangeset
for help on using the changeset viewer.