WordPress.org

Make WordPress Core

Ticket #12248: get_generic_template_patch.diff

File get_generic_template_patch.diff, 757 bytes (added by ptahdunbar, 4 years ago)
  • wp-includes/general-template.php

     
    105105 * 
    106106 * @uses locate_template() 
    107107 * @since 3.0.0 
    108  * @uses do_action() Calls 'get_generic_template_{$slug}' action. 
     108 * @uses do_action() Calls 'get_generic_template' action. 
    109109 * 
    110110 * @param string $slug The slug name for the generic template. 
    111111 * @param string $name The name of the specialised template. 
    112112 */ 
    113113function get_generic_template( $slug, $name = null ) { 
    114         do_action( "get_generic_template_{$slug}", $name ); 
     114        do_action( 'get_generic_template', $slug, $name ); 
    115115 
    116116        $templates = array(); 
    117117        if ( isset($name) )