diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php
index 10d72d5..7f6cdd4 100644
--- a/wp-admin/includes/misc.php
+++ b/wp-admin/includes/misc.php
@@ -317,8 +317,8 @@ function wp_doc_link_parse( $content ) {
 	$functions = array();
 	$ignore_functions = array();
 	for ( $t = 0, $count = count( $tokens ); $t < $count; $t++ ) {
-		if ( !is_array( $tokens[$t] ) ) continue;
-		if ( T_STRING == $tokens[$t][0] && ( '(' == $tokens[ $t + 1 ] || '(' == $tokens[ $t + 2 ] ) ) {
+		if (  ! is_array( $tokens[$t] ) ) continue;
+		if ( isset( $tokens[$t][0] ) && T_STRING == $tokens[$t][0] && ( isset( $tokens[ $t + 1 ] ) && '(' == $tokens[ $t + 1 ] || isset( $tokens[ $t + 2 ] ) && '(' == $tokens[ $t + 2 ] ) ) {
 			// If it's a function or class defined locally, there's not going to be any docs available
 			if ( ( isset( $tokens[ $t - 2 ][1] ) && in_array( $tokens[ $t - 2 ][1], array( 'function', 'class' ) ) ) || ( isset( $tokens[ $t - 2 ][0] ) && T_OBJECT_OPERATOR == $tokens[ $t - 1 ][0] ) ) {
 				$ignore_functions[] = $tokens[$t][1];
