Skip to content

Quick fix: break issue in eo_template_stack() loop #434

@lmoffereins

Description

@lmoffereins

In eo_locate_template() there's a wonderful way to override theme templates. Unfortunately, the loop for locating the template files fails on the line after which $located is defined: it breaks only the first foreach, not the entire loop. This results in the loop always searching for the last $template_name, even when a higher prioritized template file was already found before.

Suggested fix: apply break 2; instead of just break; directly after locating the template file.

Easy win!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions