WordPress.org

Make WordPress Core

Ticket #13239: 13239.7.patch

File 13239.7.patch, 360 bytes (added by meloniq, 5 years ago)

#22355 (template stacks) sounds better to me, but before it will get included into WP (and if even will), I would suggest adding simple filter in locate_template() to make possible to hook into this function with 'custom implementations of template stack'...

  • wp-includes/template.php

     
    379379                }
    380380        }
    381381
     382        $located = apply_filters( 'locate_template', $located, $template_names );
     383
    382384        if ( $load && '' != $located )
    383385                load_template( $located, $require_once );
    384386