I18N: Add a unit test for before_last_bar().

Props realloc.
Fixes #35073.
Built from https://develop.svn.wordpress.org/trunk@35959


git-svn-id: http://core.svn.wordpress.org/trunk@35923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-12-16 08:04:26 +00:00
parent f9f77d86d8
commit 6ffc7914f1
2 changed files with 4 additions and 3 deletions

View File

@ -118,10 +118,11 @@ function translate( $text, $domain = 'default' ) {
*/
function before_last_bar( $string ) {
$last_bar = strrpos( $string, '|' );
if ( false === $last_bar )
if ( false === $last_bar ) {
return $string;
else
} else {
return substr( $string, 0, $last_bar );
}
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-35958';
$wp_version = '4.5-alpha-35959';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.