mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user