WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#50857 closed defect (bug) (invalid)

ColorPicker issue in new WordPress 5.5

Reported by: juliarrr Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: I18N Keywords: close
Focuses: javascript Cc:

Description

Hi,

I'm testing new Release Candidate 2 and there is an issue with color picker:
wpColorPickerL10n is not defined.

It happens because there is no script that was in the previous WordPress versions.

<script>
var wpColorPickerL10n = {"clear":"Clear","clearAriaLabel":"Clear color","defaultString":"Default","defaultAriaLabel":"Select default color","pick":"Select Color","defaultLabel":"Color value"};
</script>

Can you add it into the new version?
Thank you!

Change History (5)

#1 @justinahinon
3 months ago

  • Component changed from General to I18N
  • Focuses javascript added

Hey @juliarrr.

Thanks for opening the ticket. There have been some changes in the localization variables in WordPress 5.5. See [48383].

Keep an eye on the Make/Core (https://make.wordpress.org/core/tag/dev-notes+5.5) blog, a dev note will be posted in a few hours for these changes.

Last edited 3 months ago by SergeyBiryukov (previous) (diff)

#3 @justinahinon
3 months ago

  • Keywords close added

#4 @justinahinon
3 months ago

Suggesting to close this as clarifications are already provided in the developer note.

#5 @SergeyBiryukov
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Looking at the plugin and theme directories, wpColorPickerL10n is used in 4100+ plugins and 1000+ themes.

Not all of them will be affected though, there are a lot of false positives.

Some appear to already be updated, like the Customizr theme.

Hopefully the dev note linked above will help more plugins and themes to update. Closing for now, as it's not an issue in WordPress core.

Last edited 3 months ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.