Index: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
===================================================================
--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php	(revision 4488)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php	(working copy)
@@ -1192,7 +1192,7 @@
 				$source_line = fgets( $handle );
 
 				// Stop reading file once end_line is reached.
-				if ( $line > $end_line ) {
+				if ( $line >= $end_line ) {
 					break;
 				}
 
@@ -1201,12 +1201,6 @@
 					continue;
 				}
 
-				// Skip the last line if it is "endif;"; the parser includes the
-				// endif of a if/endif wrapping typical of pluggable functions.
-				if ( $line === $end_line && 'endif;' === trim( $source_line ) ) {
-					continue;
-				}
-
 				$source_code .= $source_line;
 			}
 			fclose( $handle );
