WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18561, comment 58


Ignore:
Timestamp:
09/01/2011 07:13:43 PM (7 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18561, comment 58

    initial v1  
    3333        $located        = apply_filters( 'pre_locate_template', '', $template_names, $template_paths );
    3434
    35         // Skip the check if a filter overloaded
     35        // Skip the check if 'pre_locate_template' overloaded everything
    3636        if ( empty( $located ) ) {
    3737               
     
    5252
    5353        // Only load the template if one is found
    54         if ( $load && '' !== $located )
     54        if ( $load && '!empty( $located ) )
    5555                load_template( $located, $require_once );
    5656