Opened 6 months ago
Closed 6 months ago
#64524 closed defect (bug) (fixed)
Incorrect @see tag syntax - wp_enqueue_code_editor()
| Reported by: | marian1 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0 |
| Component: | General | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
The PHPDoc for wp_enqueue_code_editor() includes this see tag: @see wp_get_code_editor_settings();.
The @see tag should reference the function signature (including parentheses for functions/methods) but should not include a trailing semicolon as it is not part of the referenced symbol. The trailing semicolon also violates WP inline documentation standards.
Impact
- May cause issues with documentation parsers and static analysis tools that expect a symbol reference
Proposed Change
Change the current tag
@see wp_get_code_editor_settings();
To:
@see wp_get_code_editor_settings()
Notes
- File location:
wp-includes/general-template.php. - A search for
@see.*;didn’t turn up any other instances of@seereferences ending with a semicolon in the code base.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/64524