• Hi,

    This plugin uses the template_include filter but in some cases serve_file() will return false or null. I’m using the roots theme framework which has a template_include filter at priority 99, so when it gets passed null or false it produces errors like these:

    PHP Warning: include(): Filename cannot be empty in /var/vhosts/……../base.php on line 17

    I think in the cases where you’re returning false or null it may be more appropriate to exit/die, and that should lead to less adverse reactions with other plugins and themes.

    Thanks,
    Tom Adams
    dxw

    https://ww.wp.xz.cn/plugins/wp-document-revisions/

The topic ‘Uses template_include hook incorrectly’ is closed to new replies.