WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 8 weeks ago

#26283 new defect (bug)

Admin notice, update core-bug

Reported by: robsat91 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.7.1
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:

Description

WP VERSION CHECK BUG
I am running on WP 3.7.1, but in wp-admin there is an admin-notice and i am being told to update to 3.7.1.
The wp version-check seems to be buggy. I have tracked the error down to "wp-includes/version.php".

The problem appears when i use an english installation of wordpress with norwegian language added afterwards.
In the norwegian installation of "wp-includes/version.php" the variable "$wp_local_package" is set (to "nb_NO"). But the variable is not set at all in the english installation. So when i add norwegian language (add lang-files, change define WPLANG in wp-config.php) to my english version (fetched from svn-tag) the admin notice appear.

When i add my quickfix in my theme (functions.php) it works great and the notice disappears:
$wp_local_package = WPLANG;

Change History (2)

comment:1 SergeyBiryukov5 months ago

  • Component changed from General to Upgrade/Install

comment:2 ocean908 weeks ago

  • Keywords reporter-feedback added; needs-patch removed

Hello robsat91, thanks for the report.

While you had this issue did you took a look at wp-admin/update-core.php? It seems like the English package was installed because the localized package wasn't ready at this time. So at wp-admin/update-core.php you can either update again or just hide the update.

Related: #27164

Note: See TracTickets for help on using tickets.