WordPress.org

Making WordPress.org

#5318 closed defect (reported-upstream)

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

Reported by: 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
15 months 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
15 months 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.