diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index d7642c7038..651c78e791 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -222,15 +222,15 @@ function translate( $text, $domain = 'default' ) { * * @since 2.8.0 * - * @param string $string A pipe-delimited string. - * @return string Either $string or everything before the last pipe. + * @param string $text A pipe-delimited string. + * @return string Either $text or everything before the last pipe. */ -function before_last_bar( $string ) { - $last_bar = strrpos( $string, '|' ); +function before_last_bar( $text ) { + $last_bar = strrpos( $text, '|' ); if ( false === $last_bar ) { - return $string; + return $text; } else { - return substr( $string, 0, $last_bar ); + return substr( $text, 0, $last_bar ); } } diff --git a/wp-includes/version.php b/wp-includes/version.php index d237a516ae..25e4bd6fa3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54937'; +$wp_version = '6.2-alpha-54938'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.