WordPress.org

Make WordPress Core

Ticket #21506: general-template.php.patch

File general-template.php.patch, 1.1 KB (added by barrykooij, 7 years ago)

Added '_after' hooks.

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

     
    3333        // Backward compat code will be removed in a future release
    3434        if ('' == locate_template($templates, true))
    3535                load_template( ABSPATH . WPINC . '/theme-compat/header.php');
     36
     37        do_action( 'get_header_after', $name );
    3638}
    3739
    3840/**
     
    6264        // Backward compat code will be removed in a future release
    6365        if ('' == locate_template($templates, true))
    6466                load_template( ABSPATH . WPINC . '/theme-compat/footer.php');
     67
     68        do_action( 'get_footer_after', $name );
    6569}
    6670
    6771/**
     
    9195        // Backward compat code will be removed in a future release
    9296        if ('' == locate_template($templates, true))
    9397                load_template( ABSPATH . WPINC . '/theme-compat/sidebar.php');
     98
     99        do_action( 'get_sidebar_after', $name );
    94100}
    95101
    96102/**
     
    126132        $templates[] = "{$slug}.php";
    127133
    128134        locate_template($templates, true, false);
     135
     136        do_action( "get_template_part_{$slug}_after", $slug, $name );
    129137}
    130138
    131139/**