[wp-trac] [WordPress Trac] #45468: Language_Pack_Upgrader should delete existing language files

WordPress Trac noreply at wordpress.org
Sun Jan 20 12:56:24 UTC 2019


#45468: Language_Pack_Upgrader should delete existing language files
-----------------------------+---------------------
 Reporter:  ocean90          |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  5.1
Component:  Upgrade/Install  |     Version:  5.0
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+---------------------
Description changed by swissspidy:

Old description:

> Related: #45103, #45467
>
> Translations in JSON format are stored in a file named `<locale>-<hash-
> of-file-path>.json`. This means if the file is removed or renamed the
> hash will change too and the old file is no longer used. To avoid filling
> up the disk with unnecessary files the upgrader should remove all exiting
> files first.

New description:

 Related: #45103, #45467

 Translations in JSON format are stored in a file named `<locale>-<hash-of-
 file-path>.json`. This means if the file is removed or renamed the hash
 will change too and the old file is no longer used. To avoid filling up
 the disk with unnecessary files the upgrader should remove all existing
 files first.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45468#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list