[wp-trac] [WordPress Trac] #34029: When installing a plugin/theme load also available language packs

WordPress Trac noreply at wordpress.org
Thu Oct 1 21:20:11 UTC 2015


#34029: When installing a plugin/theme load also available language packs
-----------------------------+----------------------
 Reporter:  ocean90          |       Owner:  ocean90
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:  4.4
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-patch        |     Focuses:
-----------------------------+----------------------
Changes (by ocean90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34751"]:
 {{{
 #!CommitTicketReference repository="" revision="34751"
 Upgrader: Clear plugin/theme caches directly after a plugin/theme has been
 installed.

 `wp_update_plugins()` and `wp_update_themes()` are both hooked into
 `upgrader_process_complete` with priority 10. But at this stage the caches
 in `get_plugins()`, `search_theme_directories()`, and `wp_get_themes()`
 aren't refreshed yet so both functions couldn't fetch any translations for
 the new plugin/theme.
 To reset the caches `wp_clean_themes_cache()` and
 `wp_clean_plugins_cache()` are now hooked into `upgrader_process_complete`
 with priority 9.

 Fixes #34029.
 }}}

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


More information about the wp-trac mailing list