Commit a0e678d
HTML API: Refactor layout image container. (#72264)
For classic themes, image blocks need to create a `DIV` wrapper which
contains alignment classes from the inner `FIGURE`. This has been
processed using PCRE matching.
With this change the HTML API is used instead of PCRE functions to
provide more semantic transformation, clearer intent, and eliminate
possible parsing issues.
Co-authored-by: Glen Davies <glendaviesnz@users.noreply.github.com>
Co-authored-by: tellthemachines <isabel@tellthemachines.com>
Github-PR: 72264
Github-PR-URL: #72264
Core-Backport-PR: WordPress/wordpress-develop#10218
Core-Backport-PR-URL: WordPress/wordpress-develop#102181 parent f05fe79 commit a0e678d
File tree
3 files changed
+42
-37
lines changed- backport-changelog/6.9
- lib/block-supports
- phpunit/block-supports
3 files changed
+42
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | | - | |
1117 | 1116 | | |
1118 | 1117 | | |
1119 | 1118 | | |
| |||
1124 | 1123 | | |
1125 | 1124 | | |
1126 | 1125 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1152 | 1129 | | |
| 1130 | + | |
1153 | 1131 | | |
1154 | | - | |
1155 | | - | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1156 | 1139 | | |
1157 | 1140 | | |
1158 | 1141 | | |
1159 | 1142 | | |
1160 | | - | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1161 | 1165 | | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | | - | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
1166 | 1170 | | |
1167 | | - | |
1168 | | - | |
1169 | 1171 | | |
1170 | | - | |
| 1172 | + | |
1171 | 1173 | | |
1172 | 1174 | | |
1173 | 1175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments