X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..refs/tags/wordpress-3.3.1-scripts:/wp-includes/general-template.php diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index b3712425..d855ef52 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -28,11 +28,11 @@ 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)) - load_template( WPINC . '/theme-compat/header.php'); + load_template( ABSPATH . WPINC . '/theme-compat/header.php'); } /** @@ -57,11 +57,11 @@ 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)) - load_template( WPINC . '/theme-compat/footer.php'); + load_template( ABSPATH . WPINC . '/theme-compat/footer.php'); } /** @@ -86,11 +86,11 @@ 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)) - load_template( WPINC . '/theme-compat/sidebar.php'); + load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php'); } /** @@ -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. @@ -151,13 +151,13 @@ function get_template_part( $slug, $name = null ) { function get_search_form($echo = true) { do_action( 'get_search_form' ); - $search_form_template = locate_template(array('searchform.php')); + $search_form_template = locate_template('searchform.php'); if ( '' != $search_form_template ) { require($search_form_template); return; } - $form = '