Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -78,7 +78,15 @@ class _Translatable extends FormAbstract
|
||||
{
|
||||
if ( \is_array( $this->options['sprintf'] ) )
|
||||
{
|
||||
$values[ $k ] = vsprintf( $v, $this->options['sprintf'] );
|
||||
try
|
||||
{
|
||||
$values[ $k ] = vsprintf( $v, $this->options[ 'sprintf' ] );
|
||||
}
|
||||
catch ( \ValueError $e )
|
||||
{
|
||||
/* Note in pre-PHP8, vsprintf() returns FALSE */
|
||||
$values[ $k ] = FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user