Themes: Make sure get_file_data() recognizes headers prefixed by <?php tag.

This allows for using headers in the format of `<?php // Template Name: Something ?>`, which previously could not be recognized correctly.

Props dd32, m_uysl, thomas-vitale, boblinthorst.
Fixes #33387.

git-svn-id: https://develop.svn.wordpress.org/trunk@51182 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-06-18 14:02:44 +00:00
parent 1f0cdc6f3b
commit 2816e8b876
4 changed files with 27 additions and 4 deletions