WordPress.org

Make WordPress Core

Ticket #15957: theme.diff

File theme.diff, 542 bytes (added by willnorris, 7 years ago)
  • wp-includes/theme.php

     
    11141115        if ( is_array( $wp_query->query_vars ) )
    11151116                extract( $wp_query->query_vars, EXTR_SKIP );
    11161117
     1118        do_action('pre_load_template', $_template_file, $require_once);
     1119
    11171120        if ( $require_once )
    11181121                require_once( $_template_file );
    11191122        else
    11201123                require( $_template_file );
     1124
     1125        do_action('post_load_template', $_template_file, $require_once);
    11211126}
    11221127
    11231128/**