<html><head></head><body bgcolor="#FFFFFF"><div>And the line number may change.&nbsp;<br><br>Curtis McHale<div>604.751.3482</div></div><div><br>On 2011-11-09, at 4:17, scribu &lt;<a href="mailto:scribu@gmail.com">scribu@gmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>As long as you use tags/X.Y.Z instead of trunk, there's no issue.<br><br>The only drawback is that it takes an extra effort to add the line number to the URL.<br><br><br><div class="gmail_quote">On Wed, Nov 9, 2011 at 9:04 AM, Michael Beckwith <span dir="ltr">&lt;<a href="mailto:michael.d.beckwith@gmail.com">michael.d.beckwith@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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 <a href="http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/bar.php" target="_blank">http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/bar.php</a>, go to the actual destination, and then copy/paste in the link + line number.<br>


<br>For example from get_userdata():<br><br>Current source link = <a href="http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php" target="_blank">http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php</a><br>


Proposed source link = <a href="http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php#L94" target="_blank">http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/pluggable.php#L94</a> <br><br>

The #L94 anchor pulls them straight to the start of the comment block for the function.<br>
<br>Thoughts? Issues that I wasn't around for the first time someone thought this up?<br>
<br>_______________________________________________<br>
wp-docs mailing list<br>
<a href="mailto:wp-docs@lists.automattic.com">wp-docs@lists.automattic.com</a><br>
<a href="http://lists.automattic.com/mailman/listinfo/wp-docs" target="_blank">http://lists.automattic.com/mailman/listinfo/wp-docs</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://scribu.net" target="_blank">http://scribu.net</a><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>wp-docs mailing list</span><br><span><a href="mailto:wp-docs@lists.automattic.com">wp-docs@lists.automattic.com</a></span><br><span><a href="http://lists.automattic.com/mailman/listinfo/wp-docs">http://lists.automattic.com/mailman/listinfo/wp-docs</a></span><br></div></blockquote></body></html>