-
+ 712890941EEFA363601A5DFAC4FD1F6FAD031195F30C7D4EF91CC4FB3A274827328F5DFB678AB245DD446A0D7C34A064EB3D55EF24F5A4F56352B3AE7F18D745
mp-wp/wp-includes/template-loader.php
(0 . 0)(1 . 78)
153852 <?php
153853 /**
153854 * Loads the correct template based on the visitor's url
153855 * @package WordPress
153856 */
153857 if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
153858 do_action('template_redirect');
153859 if ( is_robots() ) {
153860 do_action('do_robots');
153861 return;
153862 } else if ( is_feed() ) {
153863 do_feed();
153864 return;
153865 } else if ( is_trackback() ) {
153866 include(ABSPATH . 'wp-trackback.php');
153867 return;
153868 } else if ( is_404() && $template = get_404_template() ) {
153869 include($template);
153870 return;
153871 } else if ( is_search() && $template = get_search_template() ) {
153872 include($template);
153873 return;
153874 } else if ( is_tax() && $template = get_taxonomy_template()) {
153875 include($template);
153876 return;
153877 } else if ( is_home() && $template = get_home_template() ) {
153878 include($template);
153879 return;
153880 } else if ( is_attachment() && $template = get_attachment_template() ) {
153881 remove_filter('the_content', 'prepend_attachment');
153882 include($template);
153883 return;
153884 } else if ( is_single() && $template = get_single_template() ) {
153885 include($template);
153886 return;
153887 } else if ( is_page() && $template = get_page_template() ) {
153888 include($template);
153889 return;
153890 } else if ( is_category() && $template = get_category_template()) {
153891 include($template);
153892 return;
153893 } else if ( is_tag() && $template = get_tag_template()) {
153894 include($template);
153895 return;
153896 } else if ( is_author() && $template = get_author_template() ) {
153897 include($template);
153898 return;
153899 } else if ( is_date() && $template = get_date_template() ) {
153900 include($template);
153901 return;
153902 } else if ( is_archive() && $template = get_archive_template() ) {
153903 include($template);
153904 return;
153905 } else if ( is_comments_popup() && $template = get_comments_popup_template() ) {
153906 include($template);
153907 return;
153908 } else if ( is_paged() && $template = get_paged_template() ) {
153909 include($template);
153910 return;
153911 } else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
153912 include(TEMPLATEPATH . "/index.php");
153913 return;
153914 }
153915 } else {
153916 // Process feeds and trackbacks even if not using themes.
153917 if ( is_robots() ) {
153918 do_action('do_robots');
153919 return;
153920 } else if ( is_feed() ) {
153921 do_feed();
153922 return;
153923 } else if ( is_trackback() ) {
153924 include(ABSPATH . 'wp-trackback.php');
153925 return;
153926 }
153927 }
153928
153929 ?>