Skip to content

Commit a5a059f

Browse files
Add "l" placeholder used in wp_sprintf_l()
1 parent 36eb5ee commit a5a059f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gp-templates/helper-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function( $m ) use ( &$glossary_entries ) {
3232
// Break out & back into notranslate for translatable attributes.
3333
$text = preg_replace( '/(title|aria-label)=([\'"])([^\\2]+?)\\2/', '\\1=\\2</span>\\3<span class="notranslate">\\2', $text );
3434
// Wrap placeholders with notranslate.
35-
$text = preg_replace( '/(%(\d+\$(?:\d+)?)?[bcdefgosuxEFGX])/', '<span class="notranslate">\\1</span>', $text );
35+
$text = preg_replace( '/(%(\d+\$(?:\d+)?)?[bcdefglosuxEFGX])/', '<span class="notranslate">\\1</span>', $text );
3636

3737
// Put the glossaries back!
3838
$text = preg_replace_callback(

0 commit comments

Comments
 (0)