mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325.
git-svn-id: https://develop.svn.wordpress.org/trunk@19726 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1706,8 +1706,8 @@ function wp_text_diff( $left_string, $right_string, $args = null ) {
|
||||
$left_string = normalize_whitespace($left_string);
|
||||
$right_string = normalize_whitespace($right_string);
|
||||
|
||||
$left_lines = split("\n", $left_string);
|
||||
$right_lines = split("\n", $right_string);
|
||||
$left_lines = explode("\n", $left_string);
|
||||
$right_lines = explode("\n", $right_string);
|
||||
|
||||
$text_diff = new Text_Diff($left_lines, $right_lines);
|
||||
$renderer = new WP_Text_Diff_Renderer_Table();
|
||||
|
||||
Reference in New Issue
Block a user