Commit 3ec266f
committed
Refactor metadata merging in
Improves the handling of metadata for single-root patterns by ensuring that existing metadata is preserved while integrating new attributes such as `name`, `description`, and `categories`. Updates unit tests to reflect the changes in metadata structure, ensuring accurate representation of merged metadata.resolve_pattern_blocks function1 parent 330dc2b commit 3ec266f
File tree
2 files changed
+18
-9
lines changed- src/wp-includes
- tests/phpunit/tests/blocks
2 files changed
+18
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
| 1886 | + | |
| 1887 | + | |
1886 | 1888 | | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
1890 | 1892 | | |
1891 | | - | |
1892 | | - | |
| 1893 | + | |
| 1894 | + | |
1893 | 1895 | | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
1894 | 1903 | | |
1895 | | - | |
| 1904 | + | |
1896 | 1905 | | |
1897 | 1906 | | |
1898 | 1907 | | |
1899 | 1908 | | |
1900 | 1909 | | |
1901 | | - | |
| 1910 | + | |
1902 | 1911 | | |
1903 | 1912 | | |
1904 | 1913 | | |
1905 | 1914 | | |
1906 | 1915 | | |
1907 | | - | |
| 1916 | + | |
1908 | 1917 | | |
1909 | 1918 | | |
1910 | 1919 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments