WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 6 weeks ago

#46856 new defect (bug)

Incorrect type docblock annotations for some variables in wp-includes/class-wp-customize-widgets.php

Reported by: diddledan Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Customize Keywords: has-patch
Focuses: docs Cc:

Description

The type annotation for $context_sidebar_instance_number is set to int.
The type annotations for $rendering_widget_id and $rendering_sidebar_id are set to string.

Each of these are sometimes assigned null. The attached patch fixes their respective docblock type annotations to also include null.

Attachments (1)

46856.diff (1.7 KB) - added by diddledan 7 weeks ago.
patch to change type annotations in docblock for specific variables to also include null

Download all attachments as: .zip

Change History (2)

@diddledan
7 weeks ago

patch to change type annotations in docblock for specific variables to also include null

#1 @SergeyBiryukov
6 weeks ago

  • Component changed from General to Customize
  • Focuses docs added
  • Milestone changed from Awaiting Review to 5.3

Related: #46852-46854

Note: See TracTickets for help on using tickets.