WordPress.org

Make WordPress Core

Ticket #40038: templatepad.diff

File templatepad.diff, 966 bytes (added by qwertyzw, 3 years ago)
  • wp-includes/template.php

    diff --git a/wp-includes/template.php b/wp-includes/template.php
    index a039ba3eb..d449be4f5 100644
    a b function load_template( $_template_file, $require_once = true ) { 
    684684                $s = esc_attr( $s );
    685685        }
    686686
    687         /**
    688          * Fires before a template file is outputted.
    689          * This action, along with load_template_after
    690          * allow you to pad templates with
    691          * html.
    692          *
    693          * @since ?
    694          *
    695          * @param string     the template being outputted.
    696          */
    697         do_action('load_template_before', $_template_file);
    698687        if ( $require_once ) {
    699688                require_once( $_template_file );
    700689        } else {
    701690                require( $_template_file );
    702691        }
    703         /**
    704          * Fires after a template file is outputted.
    705          * This action, along with load_template_before
    706          * allow you to pad templates with
    707          * html.
    708          *
    709          * @since ?
    710          *
    711          * @param string     the template being outputted.
    712          */
    713          do_action('load_template_after', $_template_file);
    714692}