Changes between Version 3 and Version 4 of Ticket #9716, comment 13
- Timestamp:
- 04/19/2012 02:42:06 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9716, comment 13
v3 v4 1 1 @SergeyBiryukov - Thank you for updating what I posted to a non-deprecated function. Although IMHO I would use preg-replace instead of str-replace as the first is for reg exp. 2 2 3 {{{ 4 $newcontent = preg_replace("(\r\n|\r|\n\r)","\n",stripslashes($_POST['newcontent'])); 5 6 }}} 7 8 3 9 @Everyone - Curious if this will be the one fix we need. Both solutions have worked for me without causing any funkiness when opening the file after a WP edit in any program; Dreamweaver, Sublime Text 2, Windows Notepad and WordPad included. If this patch works across all platforms *nix/Windows then we won't need the toggle option.