Make WordPress Core

#63525 closed defect (bug) (reported-upstream)

Doc comment code improvement.

Reported by: upadalavipul's profile upadalavipul Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: docs Cc:

Description

I have reviewed the code in the file below and noticed that we are using the global $wp_widget_factory variable with the data type declared as int, which I believe is incorrect. This variable is actually an object of the WP_Widget_Factory class. Therefore, I suggest updating the function comment to reflect the correct data type.

File: wp-includes/blocks/legacy-widget.php

Attachments (1)

63525.patch (784 bytes) - added by upadalavipul 11 months ago.
patch Added.

Download all attachments as: .zip

Change History (3)

@upadalavipul
11 months ago

patch Added.

#1 @audrasjb
11 months ago

  • Keywords close added

Hello and thanks for the patch,
However, this file is not managed in WordPress Core but on Gutenberg side. Please rather open a ticket on Gutenberg repo: https://github.com/WordPress/gutenberg/issues

Marking this as close as it needs to be reported upstream.

#2 @sabernhardt
11 months ago

  • Component changed from General to Editor
  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanks! No need to open another issue; it was already fixed in https://github.com/WordPress/gutenberg/pull/69775

Note: See TracTickets for help on using tickets.