Changeset 27323
- Timestamp:
- 02/27/2014 11:15:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/misc.php
r26995 r27323 315 315 316 316 $tokens = token_get_all( $content ); 317 $count = count( $tokens ); 317 318 $functions = array(); 318 319 $ignore_functions = array(); 319 for ( $t = 0, $count = count( $tokens ); $t < $count; $t++ ) { 320 if ( !is_array( $tokens[$t] ) ) continue; 321 if ( T_STRING == $tokens[$t][0] && ( '(' == $tokens[ $t + 1 ] || '(' == $tokens[ $t + 2 ] ) ) { 320 for ( $t = 0; $t < $count - 2; $t++ ) { 321 if ( ! is_array( $tokens[ $t ] ) ) { 322 continue; 323 } 324 325 if ( T_STRING == $tokens[ $t ][0] && ( '(' == $tokens[ $t + 1 ] || '(' == $tokens[ $t + 2 ] ) ) { 322 326 // If it's a function or class defined locally, there's not going to be any docs available 323 327 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] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.