Check that token_get_all() exists before creating documentation links. fixes #10261 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@11671 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-06-29 20:48:12 +00:00
parent dac10ca31b
commit 79eb523554
2 changed files with 11 additions and 6 deletions
+3
View File
@@ -272,6 +272,9 @@ function wp_doc_link_parse( $content ) {
if ( !is_string( $content ) || empty( $content ) )
return array();
if ( !function_exists('token_get_all') )
return array();
$tokens = token_get_all( $content );
$functions = array();
$ignore_functions = array();