WordPress.org

Make WordPress Core

Ticket #40969: 40969.diff

File 40969.diff, 379 bytes (added by tferry, 13 months ago)

updates get_template_part to return the value of locate_template

  • wp-includes/general-template.php

     
    154154
    155155        $templates[] = "{$slug}.php";
    156156
    157         locate_template( $templates, true, false );
     157        return locate_template( $templates, true, false );
    158158}
    159159
    160160/**