Server IP : 193.141.3.70 / Your IP : 3.145.119.222 Web Server : Apache/2.4.59 (Unix) System : Linux localhost 4.18.0-513.11.1.el8_9.x86_64 #1 SMP User : ( 3278622) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /mnt/web008/e1/89/56913989/htdocs/WordPress_01/wp-includes/ |
Upload File : |
<?php /** * Diff API: WP_Text_Diff_Renderer_inline class * * @package WordPress * @subpackage Diff * @since 4.7.0 */ /** * Better word splitting than the PEAR package provides. * * @since 2.6.0 * @uses Text_Diff_Renderer_inline Extends */ class WP_Text_Diff_Renderer_inline extends Text_Diff_Renderer_inline { /** * @ignore * @since 2.6.0 * * @param string $string * @param string $newlineEscape * @return 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; } }