[wp-trac] [WordPress Trac] #63525: Doc comment code improvement.

WordPress Trac noreply at wordpress.org
Wed Jun 4 12:34:46 UTC 2025


#63525: Doc comment code improvement.
--------------------------+-----------------------------
 Reporter:  upadalavipul  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 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

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63525>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list