Ticket #21616: 21616-2.patch
File 21616-2.patch, 814 bytes (added by , 12 years ago) |
---|
-
add-textdomain.php
69 69 } elseif (')' == $token) { 70 70 --$parens_balance; 71 71 if ($in_func && 0 == $parens_balance) { 72 $token = $found_domain? ')' : ", '$domain' )";72 $token = $found_domain? ')' : ", '$domain' )"; 73 73 $in_func = false; 74 74 $args_started = false; 75 75 $found_domain = false; 76 76 } 77 77 } 78 // http://core.trac.wordpress.org/ticket/21616 79 // fix opening parentheses missing space character 80 if ($prev_token == '(' && $token !== ' ') { 81 $token = ' ' . $token; 82 } 83 $prev_token = $token; 78 84 $this->process_token($token, $inplace); 79 85 } 80 86