Changeset 741
- Timestamp:
- 07/09/2014 06:20:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r737 r741 725 725 $line++; 726 726 $source_line = fgets( $handle ); 727 728 // Stop reading file once end_line is reached. 727 729 if ( $line > $end_line ) { 728 730 break; 729 731 } 732 733 // Skip lines until start_line is reached. 730 734 if ( $line < $start_line ) { 731 735 continue; 732 736 } 737 738 // Skip the last line if it is "endif;"; the parser includes the 739 // endif of a if/endif wrapping typical of pluggable functions. 740 if ( $line === $end_line && 'endif;' === trim( $source_line ) ) { 741 continue; 742 } 743 733 744 $source_code .= $source_line; 734 745 }
Note: See TracChangeset
for help on using the changeset viewer.