#177 closed enhancement (duplicate)
Add cross referencing throughout code reference
Reported by: | samuelsidler | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | has-patch |
Cc: |
Description
The code reference should cross reference itself. e.g., hooks that appear inside of a function, or functions attached to hooks.
Change History (10)
#4
in reply to:
↑ 3
@
11 years ago
Replying to toscho:
Not sure what the best place is to discuss that topic. Make? Core trac? Chat? This trac?
Bring it up with the inline docs team and see what they think. Best way to do that is attend their weekly meeting or comment on their weekly update on make.
#5
in reply to:
↑ 3
@
11 years ago
Replying to toscho:
It would be nice to have a standard. We could extend the PHP doc standard with a new tag and a vendor prefix:
* @wp-ticket http://core.trac.wordpress.org/ticket/19589Not sure what the best place is to discuss that topic. Make? Core trac? Chat? This trac?
All links to Trac tickets and other external documentation will be handled using the @link
tag in the doc blocks. References to other functions/classes/hooks/etc. will be done using the @see
tag.
We are trying to stay away from using any custom tags in the doc blocks.
We're aware of the inconsistencies, and are working hard to fix them.
You, and anyone else, are always welcome to attend our weekly inline docs chat, Wednesdays at 18:00 UTC in #wordpress-sfd, or reach out to @DrewAPicture or myself with questions in between meetings. :)
This ticket was mentioned in Slack in #meta-devhub by siobhan. View the logs.
10 years ago
This ticket was mentioned in PR #178 on WordPress/wporg-main-2022 by @adamwood.
21 months ago
#10
- Keywords has-patch added
Fixes #177
Props @tellthemachines, @StevenDufresne
### How to test the changes in this Pull Request:
1.
2.
3.
One simple way to find related related posts would be the Trac ticket number. In some docs, this number is available, so we could store its value in a post meta field. Unfortunately, there seems to be no standard. I found four different variants in
wp-includes/functions.php
:It would be nice to have a standard. We could extend the PHP doc standard with a new tag and a vendor prefix:
Not sure what the best place is to discuss that topic. Make? Core trac? Chat? This trac?