Making WordPress.org

Opened 4 years ago

Closed 4 years ago

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

@see in a DocBlock that is a reference to a hook incorrectly interpreted as a reference to a function

Reported by: pbiron's profile pbiron Owned by:
Milestone: Priority: normal
Component: Developer Hub Keywords: 2nd-opinion
Cc:

Description

I'm not sure if this is the result of something wrong in the DocBlock or with the parser, but in the "see also" section of the Code Reference entry for wp_privacy_process_personal_data_export_page(), the link goes to

and it should go to

If it's a problem with the DocBlock, let me know what's wrong with it and I'll do a core patch.

Change History (2)

#1 @coffee2code
4 years ago

@pbiron: That should be fixed in core. Hooks should be single-quoted when referenced.

So this:
* @see wp_privacy_personal_data_export_page

Should be:
* @see 'wp_privacy_personal_data_export_page'

The same fix needs to also be applied to wp_privacy_process_personal_data_erasure_page() in the same file.

#2 @pbiron
4 years ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Thanx for the quick reply. I'll submit a core patch.

Note: See TracTickets for help on using tickets.