diff --git a/wp-includes/pomo/po.php b/wp-includes/pomo/po.php index 723ffaec53..f76be01139 100644 --- a/wp-includes/pomo/po.php +++ b/wp-includes/pomo/po.php @@ -355,7 +355,7 @@ class PO extends Gettext_Translations { return true; } $line = $use_last_line? $last_line : fgets($f); - $line = gp_endswith( $line, "\r\n" )? rtrim( $line, "\r\n" ) . "\n" : $line; + $line = ( "\r\n" == substr( $line, -2 ) ) ? rtrim( $line, "\r\n" ) . "\n" : $line; $last_line = $line; $use_last_line = false; return $line; @@ -381,4 +381,4 @@ class PO extends Gettext_Translations { return $s; } } -endif; \ No newline at end of file +endif;