#34029 closed defect (bug) (fixed)
When installing a plugin/theme load also available language packs
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Upgrade/Install | Keywords: | has-patch |
| Focuses: | Cc: |
Description (last modified by )
Currently when installing a plugin or a theme which has a language packs available for yor locale you have to switch to wp-admin/update-core.php first to get the translations. That's unpleasant.
Attachments (1)
Change History (14)
#4
@
11 years ago
- Keywords has-patch 2nd-opinion added
34029.patch clears the plugin/theme cache so the update function can fetch the new plugin/theme.
@dd32: Could you verify this for me please?
This ticket was mentioned in Slack in #meta-i18n by ocean90. View the logs.
11 years ago
#7
@
11 years ago
- Description modified (diff)
- Keywords 2nd-opinion removed
- Summary changed from When installing a plugin/theme load also avaiable language packs to When installing a plugin/theme load also available language packs
#9
@
10 years ago
- Keywords fixed-major dev-feedback added; has-patch removed
- Milestone changed from 4.4 to 4.3.2
- Resolution fixed deleted
- Status changed from closed to reopened
I think this warrants back-porting to the point releases.
A plugin that previously bundled its own translations cannot remove them in order to exclusively use language packs, because WordPress installations prior to 4.4 won't download its language pack during installation of the plugin.
If this fix gets back-ported then plugins can begin to remove their bundled language files and use language packs instead, without the concern that users on (for example) 4.2 or 4.3 won't immediately receive the language pack during installation.
This looks like a caching issue.
wp_clean_plugins_cache()gets called afterwp_update_plugins()andasync_upgrade().Log from installing WordPress Importer:
[26-Sep-2015 18:10:20 UTC] wp_update_plugins: I got called [26-Sep-2015 18:10:20 UTC] wp_update_plugins: $plugins Array ( [airplane-mode-master/airplane-mode.php] => Array ( [Name] => Airplane Mode [PluginURI] => http://reaktivstudios.com/ [Version] => 0.0.7 [Description] => Control loading of external files when developing locally [Author] => Andrew Norcross [AuthorURI] => http://reaktivstudios.com/ [TextDomain] => [DomainPath] => [Network] => [Title] => Airplane Mode [AuthorName] => Andrew Norcross ) [core-control/core-control.php] => Array ( [Name] => Core Control [PluginURI] => http://dd32.id.au/wordpress-plugins/core-control/ [Version] => 1.1 [Description] => Core Control is a set of plugin modules which can be used to control certain aspects of the WordPress control. [Author] => Dion Hulse [AuthorURI] => http://dd32.id.au/ [TextDomain] => [DomainPath] => [Network] => [Title] => Core Control [AuthorName] => Dion Hulse ) [debug-bar/debug-bar.php] => Array ( [Name] => Debug Bar [PluginURI] => http://wordpress.org/extend/plugins/debug-bar/ [Version] => 0.8.2 [Description] => Adds a debug menu to the admin bar that shows query, cache, and other helpful debugging information. [Author] => wordpressdotorg [AuthorURI] => http://wordpress.org/ [TextDomain] => [DomainPath] => [Network] => [Title] => Debug Bar [AuthorName] => wordpressdotorg ) [debug-bar-console/debug-bar-console.php] => Array ( [Name] => Debug Bar Console [PluginURI] => http://wordpress.org/extend/plugins/debug-bar-console/ [Version] => 0.3 [Description] => Adds a PHP/SQL console to the debug bar. Requires the debug bar plugin. [Author] => koopersmith [AuthorURI] => http://darylkoop.com/ [TextDomain] => [DomainPath] => [Network] => [Title] => Debug Bar Console [AuthorName] => koopersmith ) [debug-bar-transients/debug-bar-transients.php] => Array ( [Name] => Debug Bar Transients [PluginURI] => http://wpgrafie.de/wp-plugins/debug-bar-transient/en/ [Version] => 0.4 [Description] => Adds information about the WordPress Transient API to Debug Bar. [Author] => Dominik Schilling [AuthorURI] => http://wphelper.de/ [TextDomain] => ds-debug-bar-transients [DomainPath] => /lang [Network] => [Title] => Debug Bar Transients [AuthorName] => Dominik Schilling ) [dynamic-hostname/dynamic-hostname.php] => Array ( [Name] => Dynamic Hostname [PluginURI] => https://vccw.cc/ [Version] => 0.4.2 [Description] => Set hostname dynamically for the development. [Author] => Takayuki Miyauchi [AuthorURI] => https://wpist.me/ [TextDomain] => [DomainPath] => [Network] => [Title] => Dynamic Hostname [AuthorName] => Takayuki Miyauchi ) [preserve-editor-scroll-position/preserve-editor-scroll-position.php] => Array ( [Name] => Preserve Editor Scroll Position [PluginURI] => http://wpgrafie.de/wp-plugins/preserve-editor-scroll-position/ [Version] => 0.2 [Description] => This plugin will recover the old scroll position in your Editor after saving. Either HTML or visuel editor. [Author] => Dominik Schilling [AuthorURI] => http://wphelper.de/ [TextDomain] => [DomainPath] => [Network] => [Title] => Preserve Editor Scroll Position [AuthorName] => Dominik Schilling ) [public-post-preview/public-post-preview.php] => Array ( [Name] => Public Post Preview [PluginURI] => http://wpgrafie.de/wp-plugins/public-post-preview/en/ [Version] => 2.4 [Description] => Enables you to give a link to anonymous users for public preview of any post type before it is published. [Author] => Dominik Schilling [AuthorURI] => http://wphelper.de/ [TextDomain] => ds-public-post-preview [DomainPath] => /lang [Network] => [Title] => Public Post Preview [AuthorName] => Dominik Schilling ) [rewrite-rules-inspector/rewrite-rules-inspector.php] => Array ( [Name] => Rewrite Rules Inspector [PluginURI] => http://wordpress.org/extend/plugins/rewrite-rules-inspector/ [Version] => 1.2.1 [Description] => Simple WordPress Admin view for inspecting your rewrite rules [Author] => Daniel Bachhuber, Automattic [AuthorURI] => http://automattic.com/ [TextDomain] => [DomainPath] => [Network] => [Title] => Rewrite Rules Inspector [AuthorName] => Daniel Bachhuber, Automattic ) [ricg-responsive-images/wp-tevko-responsive-images.php] => Array ( [Name] => RICG Responsive Images [PluginURI] => http://www.smashingmagazine.com/2015/02/24/ricg-responsive-images-for-wordpress/ [Version] => 2.3.1 [Description] => Bringing automatic default responsive images to wordpress [Author] => The RICG [AuthorURI] => http://responsiveimages.org/ [TextDomain] => [DomainPath] => [Network] => [Title] => RICG Responsive Images [AuthorName] => The RICG ) [user-switching/user-switching.php] => Array ( [Name] => User Switching [PluginURI] => https://johnblackbourn.com/wordpress-plugin-user-switching/ [Version] => 1.0.6 [Description] => Instant switching between user accounts in WordPress [Author] => John Blackbourn [AuthorURI] => https://johnblackbourn.com/ [TextDomain] => user-switching [DomainPath] => /languages/ [Network] => 1 [Title] => User Switching [AuthorName] => John Blackbourn ) ) [26-Sep-2015 18:10:20 UTC] wp_update_plugins: $active Array ( [0] => airplane-mode-master/airplane-mode.php [1] => debug-bar-console/debug-bar-console.php [2] => debug-bar/debug-bar.php [3] => dynamic-hostname/dynamic-hostname.php [4] => preserve-editor-scroll-position/preserve-editor-scroll-position.php [5] => user-switching/user-switching.php ) [26-Sep-2015 18:10:20 UTC] wp_update_plugins: $current stdClass Object ( [last_checked] => 1443290498 [checked] => Array ( [airplane-mode-master/airplane-mode.php] => 0.0.7 [bbpress/bbpress.php] => 2.6-alpha [core-control/core-control.php] => 1.1 [debug-bar/debug-bar.php] => 0.8.2 [debug-bar-console/debug-bar-console.php] => 0.3 [debug-bar-transients/debug-bar-transients.php] => 0.4 [dynamic-hostname/dynamic-hostname.php] => 0.4.2 [edik-enhanced-image-editor/edik.php] => 0.1.2 [preserve-editor-scroll-position/preserve-editor-scroll-position.php] => 0.2 [public-post-preview/public-post-preview.php] => 2.4 [rewrite-rules-inspector/rewrite-rules-inspector.php] => 1.2.1 [ricg-responsive-images/wp-tevko-responsive-images.php] => 2.3.1 [theme-check/theme-check.php] => 20141222.1 [tinymce-advanced/tinymce-advanced.php] => 4.1.9 [user-switching/user-switching.php] => 1.0.6 [wordpress-importer/wordpress-importer.php] => 0.6.1 [wp-media-javascript-guide-master/index.php] => 0.1 [wordpress-seo/wp-seo.php] => 2.3.4 ) [response] => Array ( [ricg-responsive-images/wp-tevko-responsive-images.php] => stdClass Object ( [id] => 56755 [slug] => ricg-responsive-images [plugin] => ricg-responsive-images/wp-tevko-responsive-images.php [new_version] => 2.5.0 [url] => https://wordpress.org/plugins/ricg-responsive-images/ [package] => https://downloads.wordpress.org/plugin/ricg-responsive-images.2.5.0.zip ) [user-switching/user-switching.php] => stdClass Object ( [id] => 6923 [slug] => user-switching [plugin] => user-switching/user-switching.php [new_version] => 1.0.8 [url] => https://wordpress.org/plugins/user-switching/ [package] => https://downloads.wordpress.org/plugin/user-switching.1.0.8.zip [upgrade_notice] => Chinese (Taiwan) and Czech translations. Updated Dutch, Spanish, Hebrew, and German translations. Add an ID attribute to the links on the WordPress login screen, BuddyPress screens, and bbPress screens. ) ) [translations] => Array ( [0] => Array ( [type] WordPress.org: Please note that this content has been truncated for display.