[wp-trac] [WordPress Trac] #43158: Incorrect classes referenced in @see tags for a few functions

WordPress Trac noreply at wordpress.org
Wed Jan 24 22:40:11 UTC 2018


#43158: Incorrect classes referenced in @see tags for a few functions
--------------------------+-----------------------------
 Reporter:  coffee2code   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  low           |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  trivial       |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 There are a number of functions that have DocBlock `@see` tags referencing
 functions in classes that don't exist. Most likely these classes had been
 renamed/finalized since the tags were first written. Now that the Code
 Reference [https://meta.trac.wordpress.org/ticket/3165 exposes these
 associations], they should be fixed so they can link to the proper related
 resource.

 The ones I've found so far:

 * In `WP_Customize_Nav_Menus::filter_wp_nav_menu_args()`:
   * `WP_Customize_Nav_Menus_Partial_Refresh` should be
 `WP_Customize_Nav_Menus`
 * In `WP_Customize_Widgets::filter_dynamic_sidebar_params()`:
   * `WP_Customize_Widgets_Partial_Refresh` should be
 `WP_Customize_Widgets`
 * In `WP_Widget_Text::form()`:
   * `WP_Widget_Visual_Text` should be `WP_Widget_Text`

 Additionally, the `wp_editor_settings` filter and a `@param` description
 for `_WP_Editors::editor()` incorrectly reference a class function by
 unnecessarily adding parentheses after the class name.
 * `_WP_Editors()::parse_settings()` should be
 `_WP_Editors::parse_settings()`

 Patch attached.

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


More information about the wp-trac mailing list