WordPress.org

Make WordPress Core

Ticket #49496: 49496.diff

File 49496.diff, 643 bytes (added by kevdotbadger, 5 months ago)

patch to add update_header_template and update_footer_template

  • src/wp-includes/general-template.php

    diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php
    index 8c86ed7f92..67c8fa0710 100644
    a b function get_header( $name = null ) { 
    3838
    3939        $templates[] = 'header.php';
    4040
     41        $templates = (array) apply_filters( 'update_header_template' , $templates );
     42
    4143        locate_template( $templates, true );
    4244}
    4345
    function get_footer( $name = null ) { 
    7375
    7476        $templates[] = 'footer.php';
    7577
     78        $templates = (array) apply_filters( 'update_footer_template' , $templates );
     79
    7680        locate_template( $templates, true );
    7781}
    7882