phpdoc-parser icon indicating copy to clipboard operation
phpdoc-parser copied to clipboard

Link functions to phpxref

Open Pross opened this issue 11 years ago • 4 comments

Would be nice to make some links to either phpxref or the source in trac so you can see these functions in context.

Pross avatar Apr 25 '14 21:04 Pross

We'll probably handle this with the theme -- at least, core-specific usage.

DrewAPicture avatar Apr 26 '14 23:04 DrewAPicture

We can introduce for-convenience template tag in Parser. Like provide or configure printf template for source link and it will put the version and lines in. Just thinking aloud.

Rarst avatar Apr 27 '14 10:04 Rarst

In any case, xref is currently broken, so this should be low priority.

rmccue avatar Apr 28 '14 00:04 rmccue

That said, could link to Trac:

parser_source_link( 'https://core.trac.wordpress.org/browser/trunk/src/%1$s#L%2$s' );

rmccue avatar Apr 28 '14 00:04 rmccue