[wp-docs] Source file links for theme/plugin functions

SFNdesign curtis at curtismchale.ca
Wed Nov 9 14:21:18 UTC 2011


And the line number may change. 

Curtis McHale
604.751.3482

On 2011-11-09, at 4:17, scribu <scribu at gmail.com> wrote:

> As long as you use tags/X.Y.Z instead of trunk, there's no issue.
> 
> The only drawback is that it takes an extra effort to add the line number to the URL.
> 
> 
> On Wed, Nov 9, 2011 at 9:04 AM, Michael Beckwith <michael.d.beckwith at gmail.com> wrote:
> I was wondering if it were feasible to link to the specific line where a function is declared when saying "foo function is located in wp-includes/bar.php". Instead of just linking to http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/bar.php, go to the actual destination, and then copy/paste in the link + line number.
> 
> For example from get_userdata():
> 
> Current source link = http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php
> Proposed source link = http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php#L94 
> 
> The #L94 anchor pulls them straight to the start of the comment block for the function.
> 
> Thoughts? Issues that I wasn't around for the first time someone thought this up?
> 
> _______________________________________________
> wp-docs mailing list
> wp-docs at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-docs
> 
> 
> 
> 
> -- 
> http://scribu.net
> _______________________________________________
> wp-docs mailing list
> wp-docs at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-docs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-docs/attachments/20111109/fa8ac7d6/attachment.htm>


More information about the wp-docs mailing list