Commit 7158d9f
committed
Block Hooks: Apply block hooks to plugin-registered templates.
As of WordPress 6.7.0, it is possible -- e.g. for plugins -- to register block templates via a new API, `register_block_template()`. Unlike block templates loaded from theme files or from the database, however, those block templates didn't have Block Hooks applied. This changeset rectifies this inconsistency.
Props iamadisingh, aljullu, bernhard-reiter.
Fixes #63808.
git-svn-id: https://develop.svn.wordpress.org/trunk@60688 602fd350-edb4-49c9-b593-d223f7449a821 parent 56d7d59 commit 7158d9f
1 file changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1227 | 1227 | | |
1228 | 1228 | | |
1229 | 1229 | | |
1230 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
1231 | 1244 | | |
1232 | 1245 | | |
1233 | 1246 | | |
| |||
1323 | 1336 | | |
1324 | 1337 | | |
1325 | 1338 | | |
1326 | | - | |
| 1339 | + | |
1327 | 1340 | | |
1328 | 1341 | | |
| 1342 | + | |
1329 | 1343 | | |
1330 | 1344 | | |
1331 | 1345 | | |
| |||
1371 | 1385 | | |
1372 | 1386 | | |
1373 | 1387 | | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1374 | 1396 | | |
1375 | 1397 | | |
1376 | 1398 | | |
| |||
0 commit comments