WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #9716, comment 9


Ignore:
Timestamp:
03/16/2012 01:30:39 AM (8 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9716, comment 9

    initial v1  
    44Seems line breaks have to be normalized when saving edited files. Also if line breaks are `\r`, the theme or plugin "header" becomes inaccessible. This is browser and OS dependent but seems all modern browsers work with `\n` line breaks in a textarea. So the patch can be as simple as:
    55{{{
    6 srt_replace( array("\r\n"' "\r"), "\n", $content );
     6srt_replace( array("\r\n", "\r"), "\n", $content );
    77}}}
    88