Fix parsing of starting and ending translation string quotes
This commit is contained in:
3
tasks/makepot/node_modules/grunt-wp-i18n/vendor/wp-i18n-tools/extract.php
generated
vendored
3
tasks/makepot/node_modules/grunt-wp-i18n/vendor/wp-i18n-tools/extract.php
generated
vendored
@@ -287,7 +287,8 @@ class StringExtractor {
|
|||||||
|
|
||||||
$arguments = array();
|
$arguments = array();
|
||||||
foreach($arguments_matches[0] as $argument) {
|
foreach($arguments_matches[0] as $argument) {
|
||||||
$arguments[] = trim($argument, "'\"");
|
// Remove surrounding quotes of the same type from argument strings
|
||||||
|
$arguments[] = preg_replace("/^(('|\")+)(.*)\\1$/", "\\3", $argument);
|
||||||
}
|
}
|
||||||
|
|
||||||
$call = array(
|
$call = array(
|
||||||
|
Reference in New Issue
Block a user