~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-includes/template-loader.php

  • Committer: Manuel Seelaus
  • Date: 2015-12-09 17:47:18 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: manuel.seelaus@canonical.com-20151209174718-coxethm2swbeqksy
Merge WP4.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
elseif ( is_trackback() ) :
40
40
        include( ABSPATH . 'wp-trackback.php' );
41
41
        return;
 
42
elseif ( is_embed() ) :
 
43
        $template = ABSPATH . WPINC . '/embed-template.php';
 
44
 
 
45
        /**
 
46
         * Filter the template used for embedded posts.
 
47
         *
 
48
         * @since 4.4.0
 
49
         *
 
50
         * @param string $template Path to the template file.
 
51
         */
 
52
        $template = apply_filters( 'embed_template', $template );
 
53
 
 
54
        include ( $template );
 
55
        return;
42
56
endif;
43
57
 
44
58
if ( defined('WP_USE_THEMES') && WP_USE_THEMES ) :