X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/f9001779751f83dc8a10e478bfecb4d8dd5f964c..6c8f14c09105d0afa4c1574215c59b5021040e76:/wp-includes/general-template.php diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 19194f2f..af3d572e 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -28,7 +28,7 @@ function get_header( $name = null ) { if ( isset($name) ) $templates[] = "header-{$name}.php"; - $templates[] = "header.php"; + $templates[] = 'header.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -57,7 +57,7 @@ function get_footer( $name = null ) { if ( isset($name) ) $templates[] = "footer-{$name}.php"; - $templates[] = "footer.php"; + $templates[] = 'footer.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -86,7 +86,7 @@ function get_sidebar( $name = null ) { if ( isset($name) ) $templates[] = "sidebar-{$name}.php"; - $templates[] = "sidebar.php"; + $templates[] = 'sidebar.php'; // Backward compat code will be removed in a future release if ('' == locate_template($templates, true)) @@ -106,12 +106,12 @@ function get_sidebar( $name = null ) { * The template is included using require, not require_once, so you may include the * same template part multiple times. * - * For the parameter, if the file is called "{slug}-special.php" then specify + * For the $name parameter, if the file is called "{slug}-special.php" then specify * "special". * * @uses locate_template() * @since 3.0.0 - * @uses do_action() Calls 'get_template_part{$slug}' action. + * @uses do_action() Calls 'get_template_part_{$slug}' action. * * @param string $slug The slug name for the generic template. * @param string $name The name of the specialised template. @@ -147,6 +147,7 @@ function get_template_part( $slug, $name = null ) { * * @since 2.7.0 * @param boolean $echo Default to echo and not return the form. + * @return string|null String when retrieving, null when displaying or if searchform.php exists. */ function get_search_form($echo = true) { do_action( 'get_search_form' ); @@ -157,7 +158,7 @@ function get_search_form($echo = true) { return; } - $form = '