Commit d792cbd
committed
General: Make sure
This allows for using both of the following single-line headers formats:
{{{
<?php // Template Name: Full-Width ?>
}}}
or with a PHP short open tag:
{{{
<? # Template Name: Full-Width ?>
}}}
Previously, only the first one would be recognized correctly.
Follow-up to [51182], [62802].
Props birgire, gschoppe, sukhendu2002, SergeyBiryukov.
Fixes #42517.
git-svn-id: https://develop.svn.wordpress.org/trunk@62803 602fd350-edb4-49c9-b593-d223f7449a82get_file_data() recognizes headers prefixed by a <? tag.1 parent c38a1b7 commit d792cbd
3 files changed
Lines changed: 20 additions & 8 deletions
File tree
- src/wp-includes
- tests/phpunit
- data/formatting
- tests/functions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7051 | 7051 | | |
7052 | 7052 | | |
7053 | 7053 | | |
7054 | | - | |
| 7054 | + | |
7055 | 7055 | | |
7056 | 7056 | | |
7057 | 7057 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
0 commit comments