WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#34029 closed defect (bug) (fixed)

When installing a plugin/theme load also available language packs

Reported by: ocean90 Owned by: 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 5 years ago.

Download all attachments as: .zip

Change History (14)

#1 @ocean90
5 years ago

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

#2 @ocean90
5 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:

[25-Sep-2015 23:04:50 UTC] wp_update_plugins: I got called
[25-Sep-2015 23:04:50 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
        )

    [bbpress/bbpress.php] => Array
        (
            [Name] => bbPress
            [PluginURI] => https://bbpress.org
            [Version] => 2.6-alpha
            [Description] => bbPress is forum software with a twist from the creators of WordPress.
            [Author] => The bbPress Contributors
            [AuthorURI] => https://bbpress.org
            [TextDomain] => bbpress
            [DomainPath] => /languages/
            [Network] =>
            [Title] => bbPress
            [AuthorName] => The bbPress Contributors
        )

    [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
        )

    [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
        )

    [theme-check/theme-check.php] => Array
        (
            [Name] => Theme Check
            [PluginURI] => http://ottopress.com/wordpress-plugins/theme-check/
            [Version] => 20141222.1
            [Description] => A simple and easy way to test your theme for all the latest WordPress standards and practices. A great theme development tool!
            [Author] => Pross, Otto42
            [AuthorURI] => http://ottopress.com
            [TextDomain] => theme-check
            [DomainPath] =>
            [Network] =>
            [Title] => Theme Check
            [AuthorName] => Pross, Otto42
        )

    [tinymce-advanced/tinymce-advanced.php] => Array
        (
            [Name] => TinyMCE Advanced
            [PluginURI] => http://www.laptoptips.ca/projects/tinymce-advanced/
            [Version] => 4.1.9
            [Description] => Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
            [Author] => Andrew Ozz
            [AuthorURI] => http://www.laptoptips.ca/
            [TextDomain] =>
            [DomainPath] =>
            [Network] =>
            [Title] => TinyMCE Advanced
            [AuthorName] => Andrew Ozz
        )

    [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
        )

    [wp-media-javascript-guide-master/index.php] => Array
        (
            [Name] => WordPress Media Javascript Guide
            [PluginURI] => http://github.com/ericandrewlewis/wp-media-javascript-guide
            [Version] => 0.1
            [Description] => Enabling this WordPress plugin will create a top-level admin page "Media Guide," where you'll find documentation on Javascript design patterns and reusable elements from the media experience.
            [Author] => Eric Andrew Lewis
            [AuthorURI] => http://ericandrewlewis.com
            [TextDomain] =>
            [DomainPath] =>
            [Network] =>
            [Title] => WordPress Media Javascript Guide
            [AuthorName] => Eric Andrew Lewis
        )

    [wordpress-seo/wp-seo.php] => Array
        (
            [Name] => Yoast SEO
            [PluginURI] => https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
            [Version] => 2.3.4
            [Description] => The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
            [Author] => Team Yoast
            [AuthorURI] => https://yoast.com/
            [TextDomain] => wordpress-seo
            [DomainPath] => /languages/
            [Network] =>
            [Title] => Yoast SEO
            [AuthorName] => Team Yoast
        )

)

[25-Sep-2015 23:04:50 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
)

[25-Sep-2015 23:04:50 UTC] wp_update_plugins: $current stdClass Object
(
    [last_checked] => 1443222271
    [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
                )

            [theme-check/theme-check.php] => stdClass Object
                (
                    [id] => 18487
                    [slug] => theme-check
                    [plugin] => theme-check/theme-check.php
                    [new_version] => 20150818.1
                    [url] => https://wordpress.org/plugins/theme-check/
                    [package] => https://downloads.wordpress.org/plugin/theme-check.20150818.1.zip
                )

            [tinymce-advanced/tinymce-advanced.php] => stdClass Object
                (
                    [id] => 731
                    [slug] => tinymce-advanced
                    [plugin] => tinymce-advanced/tinymce-advanced.php
                    [new_version] => 4.2.5
                    [url] => https://wordpress.org/plugins/tinymce-advanced/
                    [package] => https://downloads.wordpress.org/plugin/tinymce-advanced.4.2.5.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.
                )

            [wordpress-seo/wp-seo.php] => stdClass Object
                (
                    [id] => 5899
                    [slug] => wordpress-seo
                    [plugin] => wordpress-seo/wp-seo.php
                    [new_version] => 2.3.5
                    [url] => https://wordpress.org/plugins/wordpress-seo/
                    [package] => https://downloads.wordpress.org/plugin/wordpress-seo.2.3.5.zip
                )

        )

    [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
                )

            [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
                )

        )

)

[25-Sep-2015 23:04:53 UTC] wp_update_plugins: I got called
[25-Sep-2015 23:04:53 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
        )

    [bbpress/bbpress.php] => Array
        (
            [Name] => bbPress
            [PluginURI] => https://bbpress.org
            [Version] => 2.6-alpha
            [Description] => bbPress is forum software with a twist from the creators of WordPress.
            [Author] => The bbPress Contributors
            [AuthorURI] => https://bbpress.org
            [TextDomain] => bbpress
            [DomainPath] => /languages/
            [Network] =>
            [Title] => bbPress
            [AuthorName] => The bbPress Contributors
        )

    [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
        )

    [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
        )

    [theme-check/theme-check.php] => Array
        (
            [Name] => Theme Check
            [PluginURI] => http://ottopress.com/wordpress-plugins/theme-check/
            [Version] => 20141222.1
            [Description] => A simple and easy way to test your theme for all the latest WordPress standards and practices. A great theme development tool!
            [Author] => Pross, Otto42
            [AuthorURI] => http://ottopress.com
            [TextDomain] => theme-check
            [DomainPath] =>
            [Network] =>
            [Title] => Theme Check
            [AuthorName] => Pross, Otto42
        )

    [tinymce-advanced/tinymce-advanced.php] => Array
        (
            [Name] => TinyMCE Advanced
            [PluginURI] => http://www.laptoptips.ca/projects/tinymce-advanced/
            [Version] => 4.1.9
            [Description] => Enables advanced features and plugins in TinyMCE, the visual editor in WordPress.
            [Author] => Andrew Ozz
            [AuthorURI] => http://www.laptoptips.ca/
            [TextDomain] =>
            [DomainPath] =>
            [Network] =>
            [Title] => TinyMCE Advanced
            [AuthorName] => Andrew Ozz
        )

    [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
        )

    [wp-media-javascript-guide-master/index.php] => Array
        (
            [Name] => WordPress Media Javascript Guide
            [PluginURI] => http://github.com/ericandrewlewis/wp-media-javascript-guide
            [Version] => 0.1
            [Description] => Enabling this WordPress plugin will create a top-level admin page "Media Guide," where you'll find documentation on Javascript design patterns and reusable elements from the media experience.
            [Author] => Eric Andrew Lewis
            [AuthorURI] => http://ericandrewlewis.com
            [TextDomain] =>
            [DomainPath] =>
            [Network] =>
            [Title] => WordPress Media Javascript Guide
            [AuthorName] => Eric Andrew Lewis
        )

    [wordpress-seo/wp-seo.php] => Array
        (
            [Name] => Yoast SEO
            [PluginURI] => https://yoast.com/wordpress/plugins/seo/#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wpseoplugin
            [Version] => 2.3.4
            [Description] => The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
            [Author] => Team Yoast
            [AuthorURI] => https://yoast.com/
            [TextDomain] => wordpress-seo
            [DomainPath] => /languages/
            [Network] =>
            [Title] => Yoast SEO
            [AuthorName] => Team Yoast
        )

)

[25-Sep-2015 23:04:53 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
)

[25-Sep-2015 23:04:53 UTC] wp_update_plugins: $current stdClass Object
(
    [last_checked] => 1443222271
    [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
                )

            [theme-check/theme-check.php] => stdClass Object
                (
                    [id] => 18487
                    [slug] => theme-check
                    [plugin] => theme-check/theme-check.php
                    [new_version] => 20150818.1
                    [url] => https://wordpress.org/plugins/theme-check/
                    [package] => https://downloads.wordpress.org/plugin/theme-check.20150818.1.zip
                )

            [tinymce-advanced/tinymce-advanced.php] => stdClass Object
                (
                    [id] => 731
                    [slug] => tinymce-advanced
                    [plugin] => tinymce-advanced/tinymce-advanced.php
                    [new_version] => 4.2.5
                    [url] => https://wordpress.org/plugins/tinymce-advanced/
                    [package] => https://downloads.wordpress.org/plugin/tinymce-advanced.4.2.5.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.
                )

            [wordpress-seo/wp-seo.php] => stdClass Object
                (
                    [id] => 5899
                    [slug] => wordpress-seo
                    [plugin] => wordpress-seo/wp-seo.php
                    [new_version] => 2.3.5
                    [url] => https://wordpress.org/plugins/wordpress-seo/
                    [package] => https://downloads.wordpress.org/plugin/wordpress-seo.2.3.5.zip
                )

        )

    [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
                )

            [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
                )

        )

)

[25-Sep-2015 23:04:54 UTC] wp_update_plugins: $new_option stdClass Object
(
    [last_checked] => 1443222293
    [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
                )

            [theme-check/theme-check.php] => stdClass Object
                (
                    [id] => 18487
                    [slug] => theme-check
                    [plugin] => theme-check/theme-check.php
                    [new_version] => 20150818.1
                    [url] => https://wordpress.org/plugins/theme-check/
                    [package] => https://downloads.wordpress.org/plugin/theme-check.20150818.1.zip
                )

            [tinymce-advanced/tinymce-advanced.php] => stdClass Object
                (
                    [id] => 731
                    [slug] => tinymce-advanced
                    [plugin] => tinymce-advanced/tinymce-advanced.php
                    [new_version] => 4.2.5
                    [url] => https://wordpress.org/plugins/tinymce-advanced/
                    [package] => https://downloads.wordpress.org/plugin/tinymce-advanced.4.2.5.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.
                )

            [wordpress-seo/wp-seo.php] => stdClass Object
                (
                    [id] => 5899
                    [slug] => wordpress-seo
                    [plugin] => wordpress-seo/wp-seo.php
                    [new_version] => 2.3.5
                    [url] => https://wordpress.org/plugins/wordpress-seo/
                    [package] => https://downloads.wordpress.org/plugin/wordpress-seo.2.3.5.zip
                )

        )

    [translations] => Array
        (
        )

    [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
                )

            [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
                )

        )

)

[25-Sep-2015 23:04:55 UTC] async_upgrade: I got called
[25-Sep-2015 23:04:55 UTC] async_upgrade: No updates
[25-Sep-2015 23:04:55 UTC] wp_clean_plugins_cache: I got called
Version 0, edited 5 years ago by ocean90 (next)

#3 @pavelevap
5 years ago

Maybe related? #32393

@ocean90
5 years ago

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


5 years ago

#6 @dd32
5 years ago

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

#7 @ocean90
5 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
5 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
5 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
5 years ago

#32393 was marked as a duplicate.

#11 @ocean90
5 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
5 years ago

Follow-up: #36383 for upgrades

#13 @ocean90
5 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.