Repository navigation
Commit f608a2c
committed
I18N: Read both revision date header names in
Language packs from translate.wordpress.org store the revision date as `translation-revision-date`, while files converted from a PO or MO source store it as `po-revision-date`. `wp_get_l10n_php_file_data()` only read the latter, so `PO-Revision-Date` came back empty for language packs, and `wp_get_installed_translations()` could then offer an installed, up-to-date pack for update again when no `.po` file sits next to it. Both names are now read, with the first one present used.
Developed in: #12844
Props bejignesh, irozum, swissspidy.
Fixes #65809.
git-svn-id: https://develop.svn.wordpress.org/trunk@65803 602fd350-edb4-49c9-b593-d223f7449a82.l10n.php files.1 parent 9f0201d commit f608a2c
3 files changed
Lines changed: 50 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
| 1831 | + | |
| 1832 | + | |
1831 | 1833 | | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
1836 | 1838 | | |
1837 | 1839 | | |
1838 | 1840 | | |
| |||
1842 | 1844 | | |
1843 | 1845 | | |
1844 | 1846 | | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1848 | 1853 | | |
1849 | 1854 | | |
1850 | 1855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
129 | 166 | | |
130 | 167 | | |
131 | 168 | | |
| |||
0 commit comments