Ticket #2311: 2311.patch
| File 2311.patch, 956 bytes (added by , 9 years ago) |
|---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
1192 1192 $source_line = fgets( $handle ); 1193 1193 1194 1194 // Stop reading file once end_line is reached. 1195 if ( $line > $end_line ) {1195 if ( $line >= $end_line ) { 1196 1196 break; 1197 1197 } 1198 1198 … … 1201 1201 continue; 1202 1202 } 1203 1203 1204 // Skip the last line if it is "endif;"; the parser includes the1205 // endif of a if/endif wrapping typical of pluggable functions.1206 if ( $line === $end_line && 'endif;' === trim( $source_line ) ) {1207 continue;1208 }1209 1210 1204 $source_code .= $source_line; 1211 1205 } 1212 1206 fclose( $handle );