mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02:00
Replace gp_endswith() with working implementation
In [22349] we introduced a call to gp_endswith(), whcih doesn't exist in WordPress, only in GlotPress. See #22337 git-svn-id: http://core.svn.wordpress.org/trunk@22350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dcc0729a6c
commit
8a2548a137
@ -355,7 +355,7 @@ class PO extends Gettext_Translations {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$line = $use_last_line? $last_line : fgets($f);
|
$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;
|
$last_line = $line;
|
||||||
$use_last_line = false;
|
$use_last_line = false;
|
||||||
return $line;
|
return $line;
|
||||||
|
Loading…
Reference in New Issue
Block a user