Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
@ -23,8 +23,8 @@ class WP_Text_Diff_Renderer_inline extends Text_Diff_Renderer_inline {
|
|||
* @param string $newlineEscape
|
||||
* @return string
|
||||
*/
|
||||
public function _splitOnWords($string, $newlineEscape = "\n") {
|
||||
$string = str_replace("\0", '', $string);
|
||||
public function _splitOnWords( $string, $newlineEscape = "\n" ) {
|
||||
$string = str_replace( "\0", '', $string );
|
||||
$words = preg_split( '/([^\w])/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE );
|
||||
$words = str_replace( "\n", $newlineEscape, $words );
|
||||
return $words;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue