Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#34029 closed defect (bug) (fixed)

When installing a plugin/theme load also available language packs

Reported by: ocean90's profile ocean90 Owned by: ocean90's profile ocean90
Milestone: 4.4 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description (last modified by ocean90)

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)

34029.patch (1.5 KB) - added by ocean90 9 years ago.

Download all attachments as: .zip

Change History (14)

#1 @ocean90
9 years ago

  • Owner set to ocean90
  • Status changed from new to assigned

#2 @ocean90
9 years ago

This looks like a caching issue. wp_clean_plugins_cache() gets called after wp_update_plugins() and async_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] => plugin
                    [slug] => wordpress-importer
                    [language] => de_DE
                    [version] => 0.6.1
                    [updated] => 2015-09-07 08:21:30
                    [package] => https://downloads.wordpress.org/translation/plugin/wordpress-importer/0.6.1/de_DE.zip
                    [autoupdate] => 1
                )

        )

    [no_update] => Array
        (
            [bbpress/bbpress.php] => stdClass Object
                (
                    [id] => 11780
                    [slug] => bbpress
                    [plugin] => bbpress/bbpress.php
                    [new_version] => 2.5.8
                    [url] => https://wordpress.org/plugins/bbpress/
                    [package] => https://downloads.wordpress.org/plugin/bbpress.2.5.8.zip
                )

            [core-control/core-control.php] => stdClass Object
                (
                    [id] => 5892
                    [slug] => core-control
                    [plugin] => core-control/core-control.php
                    [new_version] => 1.1
                    [url] => https://wordpress.org/plugins/core-control/
                    [package] => https://downloads.wordpress.org/plugin/core-control.1.1.zip
                    [upgrade_notice] => WordPress 3.2 compatibility
                )

            [debug-bar/debug-bar.php] => stdClass Object
                (
                    [id] => 18561
                    [slug] => debug-bar
                    [plugin] => debug-bar/debug-bar.php
                    [new_version] => 0.8.2
                    [url] => https://wordpress.org/plugins/debug-bar/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar.0.8.2.zip
                    [upgrade_notice] => Updated to handle a new deprecated message in WordPress 4.0.
                )

            [debug-bar-console/debug-bar-console.php] => stdClass Object
                (
                    [id] => 20000
                    [slug] => debug-bar-console
                    [plugin] => debug-bar-console/debug-bar-console.php
                    [new_version] => 0.3
                    [url] => https://wordpress.org/plugins/debug-bar-console/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-console.0.3.zip
                    [upgrade_notice] => Added syntax highlighting using the CodeMirror text editor.
Explicit PHP/SQL modes.
UI changes to reflect updated debug bar UI.
                )

            [debug-bar-transients/debug-bar-transients.php] => stdClass Object
                (
                    [id] => 30737
                    [slug] => debug-bar-transients
                    [plugin] => debug-bar-transients/debug-bar-transients.php
                    [new_version] => 0.4
                    [url] => https://wordpress.org/plugins/debug-bar-transients/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-transients.0.4.zip
                )

            [dynamic-hostname/dynamic-hostname.php] => stdClass Object
                (
                    [id] => 48728
                    [slug] => dynamic-hostname
                    [plugin] => dynamic-hostname/dynamic-hostname.php
                    [new_version] => 0.4.2
                    [url] => https://wordpress.org/plugins/dynamic-hostname/
                    [package] => https://downloads.wordpress.org/plugin/dynamic-hostname.0.4.2.zip
                )

            [edik-enhanced-image-editor/edik.php] => stdClass Object
                (
                    [id] => 45976
                    [slug] => edik-enhanced-image-editor
                    [plugin] => edik-enhanced-image-editor/edik.php
                    [new_version] => 0.1.2
                    [url] => https://wordpress.org/plugins/edik-enhanced-image-editor/
                    [package] => https://downloads.wordpress.org/plugin/edik-enhanced-image-editor.0.1.2.zip
                    [upgrade_notice] => Just upgrade.
                )

            [preserve-editor-scroll-position/preserve-editor-scroll-position.php] => stdClass Object
                (
                    [id] => 27485
                    [slug] => preserve-editor-scroll-position
                    [plugin] => preserve-editor-scroll-position/preserve-editor-scroll-position.php
                    [new_version] => 0.2
                    [url] => https://wordpress.org/plugins/preserve-editor-scroll-position/
                    [package] => https://downloads.wordpress.org/plugin/preserve-editor-scroll-position.0.2.zip
                )

            [public-post-preview/public-post-preview.php] => stdClass Object
                (
                    [id] => 6588
                    [slug] => public-post-preview
                    [plugin] => public-post-preview/public-post-preview.php
                    [new_version] => 2.4
                    [url] => https://wordpress.org/plugins/public-post-preview/
                    [package] => https://downloads.wordpress.org/plugin/public-post-preview.2.4.zip
                )

            [rewrite-rules-inspector/rewrite-rules-inspector.php] => stdClass Object
                (
                    [id] => 31263
                    [slug] => rewrite-rules-inspector
                    [plugin] => rewrite-rules-inspector/rewrite-rules-inspector.php
                    [new_version] => 1.2.1
                    [url] => https://wordpress.org/plugins/rewrite-rules-inspector/
                    [package] => https://downloads.wordpress.org/plugin/rewrite-rules-inspector.1.2.1.zip
                )

            [wordpress-importer/wordpress-importer.php] => stdClass Object
                (
                    [id] => 14975
                    [slug] => wordpress-importer
                    [plugin] => wordpress-importer/wordpress-importer.php
                    [new_version] => 0.6.1
                    [url] => https://wordpress.org/plugins/wordpress-importer/
                    [package] => https://downloads.wordpress.org/plugin/wordpress-importer.0.6.1.zip
                )

        )

)

[26-Sep-2015 18:10:25 UTC] wp_update_plugins: I got called
[26-Sep-2015 18:10:25 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:25 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:25 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] => plugin
                    [slug] => wordpress-importer
                    [language] => de_DE
                    [version] => 0.6.1
                    [updated] => 2015-09-07 08:21:30
                    [package] => https://downloads.wordpress.org/translation/plugin/wordpress-importer/0.6.1/de_DE.zip
                    [autoupdate] => 1
                )

        )

    [no_update] => Array
        (
            [bbpress/bbpress.php] => stdClass Object
                (
                    [id] => 11780
                    [slug] => bbpress
                    [plugin] => bbpress/bbpress.php
                    [new_version] => 2.5.8
                    [url] => https://wordpress.org/plugins/bbpress/
                    [package] => https://downloads.wordpress.org/plugin/bbpress.2.5.8.zip
                )

            [core-control/core-control.php] => stdClass Object
                (
                    [id] => 5892
                    [slug] => core-control
                    [plugin] => core-control/core-control.php
                    [new_version] => 1.1
                    [url] => https://wordpress.org/plugins/core-control/
                    [package] => https://downloads.wordpress.org/plugin/core-control.1.1.zip
                    [upgrade_notice] => WordPress 3.2 compatibility
                )

            [debug-bar/debug-bar.php] => stdClass Object
                (
                    [id] => 18561
                    [slug] => debug-bar
                    [plugin] => debug-bar/debug-bar.php
                    [new_version] => 0.8.2
                    [url] => https://wordpress.org/plugins/debug-bar/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar.0.8.2.zip
                    [upgrade_notice] => Updated to handle a new deprecated message in WordPress 4.0.
                )

            [debug-bar-console/debug-bar-console.php] => stdClass Object
                (
                    [id] => 20000
                    [slug] => debug-bar-console
                    [plugin] => debug-bar-console/debug-bar-console.php
                    [new_version] => 0.3
                    [url] => https://wordpress.org/plugins/debug-bar-console/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-console.0.3.zip
                    [upgrade_notice] => Added syntax highlighting using the CodeMirror text editor.
Explicit PHP/SQL modes.
UI changes to reflect updated debug bar UI.
                )

            [debug-bar-transients/debug-bar-transients.php] => stdClass Object
                (
                    [id] => 30737
                    [slug] => debug-bar-transients
                    [plugin] => debug-bar-transients/debug-bar-transients.php
                    [new_version] => 0.4
                    [url] => https://wordpress.org/plugins/debug-bar-transients/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-transients.0.4.zip
                )

            [dynamic-hostname/dynamic-hostname.php] => stdClass Object
                (
                    [id] => 48728
                    [slug] => dynamic-hostname
                    [plugin] => dynamic-hostname/dynamic-hostname.php
                    [new_version] => 0.4.2
                    [url] => https://wordpress.org/plugins/dynamic-hostname/
                    [package] => https://downloads.wordpress.org/plugin/dynamic-hostname.0.4.2.zip
                )

            [edik-enhanced-image-editor/edik.php] => stdClass Object
                (
                    [id] => 45976
                    [slug] => edik-enhanced-image-editor
                    [plugin] => edik-enhanced-image-editor/edik.php
                    [new_version] => 0.1.2
                    [url] => https://wordpress.org/plugins/edik-enhanced-image-editor/
                    [package] => https://downloads.wordpress.org/plugin/edik-enhanced-image-editor.0.1.2.zip
                    [upgrade_notice] => Just upgrade.
                )

            [preserve-editor-scroll-position/preserve-editor-scroll-position.php] => stdClass Object
                (
                    [id] => 27485
                    [slug] => preserve-editor-scroll-position
                    [plugin] => preserve-editor-scroll-position/preserve-editor-scroll-position.php
                    [new_version] => 0.2
                    [url] => https://wordpress.org/plugins/preserve-editor-scroll-position/
                    [package] => https://downloads.wordpress.org/plugin/preserve-editor-scroll-position.0.2.zip
                )

            [public-post-preview/public-post-preview.php] => stdClass Object
                (
                    [id] => 6588
                    [slug] => public-post-preview
                    [plugin] => public-post-preview/public-post-preview.php
                    [new_version] => 2.4
                    [url] => https://wordpress.org/plugins/public-post-preview/
                    [package] => https://downloads.wordpress.org/plugin/public-post-preview.2.4.zip
                )

            [rewrite-rules-inspector/rewrite-rules-inspector.php] => stdClass Object
                (
                    [id] => 31263
                    [slug] => rewrite-rules-inspector
                    [plugin] => rewrite-rules-inspector/rewrite-rules-inspector.php
                    [new_version] => 1.2.1
                    [url] => https://wordpress.org/plugins/rewrite-rules-inspector/
                    [package] => https://downloads.wordpress.org/plugin/rewrite-rules-inspector.1.2.1.zip
                )

            [wordpress-importer/wordpress-importer.php] => stdClass Object
                (
                    [id] => 14975
                    [slug] => wordpress-importer
                    [plugin] => wordpress-importer/wordpress-importer.php
                    [new_version] => 0.6.1
                    [url] => https://wordpress.org/plugins/wordpress-importer/
                    [package] => https://downloads.wordpress.org/plugin/wordpress-importer.0.6.1.zip
                )

        )

)

[26-Sep-2015 18:10:27 UTC] wp_update_plugins: $new_option stdClass Object
(
    [last_checked] => 1443291025
    [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
        (
        )

    [no_update] => Array
        (
            [core-control/core-control.php] => stdClass Object
                (
                    [id] => 5892
                    [slug] => core-control
                    [plugin] => core-control/core-control.php
                    [new_version] => 1.1
                    [url] => https://wordpress.org/plugins/core-control/
                    [package] => https://downloads.wordpress.org/plugin/core-control.1.1.zip
                    [upgrade_notice] => WordPress 3.2 compatibility
                )

            [debug-bar/debug-bar.php] => stdClass Object
                (
                    [id] => 18561
                    [slug] => debug-bar
                    [plugin] => debug-bar/debug-bar.php
                    [new_version] => 0.8.2
                    [url] => https://wordpress.org/plugins/debug-bar/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar.0.8.2.zip
                    [upgrade_notice] => Updated to handle a new deprecated message in WordPress 4.0.
                )

            [debug-bar-console/debug-bar-console.php] => stdClass Object
                (
                    [id] => 20000
                    [slug] => debug-bar-console
                    [plugin] => debug-bar-console/debug-bar-console.php
                    [new_version] => 0.3
                    [url] => https://wordpress.org/plugins/debug-bar-console/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-console.0.3.zip
                    [upgrade_notice] => Added syntax highlighting using the CodeMirror text editor.
Explicit PHP/SQL modes.
UI changes to reflect updated debug bar UI.
                )

            [debug-bar-transients/debug-bar-transients.php] => stdClass Object
                (
                    [id] => 30737
                    [slug] => debug-bar-transients
                    [plugin] => debug-bar-transients/debug-bar-transients.php
                    [new_version] => 0.4
                    [url] => https://wordpress.org/plugins/debug-bar-transients/
                    [package] => https://downloads.wordpress.org/plugin/debug-bar-transients.0.4.zip
                )

            [dynamic-hostname/dynamic-hostname.php] => stdClass Object
                (
                    [id] => 48728
                    [slug] => dynamic-hostname
                    [plugin] => dynamic-hostname/dynamic-hostname.php
                    [new_version] => 0.4.2
                    [url] => https://wordpress.org/plugins/dynamic-hostname/
                    [package] => https://downloads.wordpress.org/plugin/dynamic-hostname.0.4.2.zip
                )

            [preserve-editor-scroll-position/preserve-editor-scroll-position.php] => stdClass Object
                (
                    [id] => 27485
                    [slug] => preserve-editor-scroll-position
                    [plugin] => preserve-editor-scroll-position/preserve-editor-scroll-position.php
                    [new_version] => 0.2
                    [url] => https://wordpress.org/plugins/preserve-editor-scroll-position/
                    [package] => https://downloads.wordpress.org/plugin/preserve-editor-scroll-position.0.2.zip
                )

            [public-post-preview/public-post-preview.php] => stdClass Object
                (
                    [id] => 6588
                    [slug] => public-post-preview
                    [plugin] => public-post-preview/public-post-preview.php
                    [new_version] => 2.4
                    [url] => https://wordpress.org/plugins/public-post-preview/
                    [package] => https://downloads.wordpress.org/plugin/public-post-preview.2.4.zip
                )

            [rewrite-rules-inspector/rewrite-rules-inspector.php] => stdClass Object
                (
                    [id] => 31263
                    [slug] => rewrite-rules-inspector
                    [plugin] => rewrite-rules-inspector/rewrite-rules-inspector.php
                    [new_version] => 1.2.1
                    [url] => https://wordpress.org/plugins/rewrite-rules-inspector/
                    [package] => https://downloads.wordpress.org/plugin/rewrite-rules-inspector.1.2.1.zip
                )

        )

)

[26-Sep-2015 18:10:28 UTC] async_upgrade: I got called
[26-Sep-2015 18:10:28 UTC] async_upgrade: No Updates.
[26-Sep-2015 18:10:28 UTC] wp_clean_plugins_cache: I got called
Last edited 9 years ago by ocean90 (previous) (diff)

#3 @pavelevap
9 years ago

Maybe related? #32393

@ocean90
9 years ago

#4 @ocean90
9 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.


9 years ago

#6 @dd32
9 years ago

@ocean90 if that fixes it, sure? I've not tested it.

#7 @ocean90
9 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

#8 @ocean90
9 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 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.

#9 @johnbillion
9 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.

#10 @ocean90
9 years ago

#32393 was marked as a duplicate.

#11 @ocean90
9 years ago

  • Keywords has-patch added; fixed-major dev-feedback removed
  • Milestone changed from 4.3.2 to 4.4
  • Resolution set to fixed
  • Status changed from reopened to closed

This close to 4.4, no hint of 4.3.2 in sight.

#12 @ocean90
9 years ago

Follow-up: #36383 for upgrades

#13 @ocean90
8 years ago

In 37272:

Upgrader: Clear plugin/theme caches directly after a plugin/theme has been updated.

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.

This is a follow-up to [34751].

See #34029.
Fixes #36383.

Note: See TracTickets for help on using tickets.