WordPress.org

Make WordPress Core

Changeset 23299


Ignore:
Timestamp:
01/14/2013 05:37:00 PM (5 years ago)
Author:
azaozz
Message:

Media: when copying from "caption" (textarea) to "alt" (text input) also remove line breaks, props kovshenin, fixes #23176 for 3.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/js/media-editor.js

    r23273 r23299  
    1919                    props.alt = props.caption || props.title || '';
    2020                    props.alt = props.alt.replace( /<\/?[^>]+>/g, '' );
     21                    props.alt = props.alt.replace( /[\r\n]+/g, ' ' );
    2122                }
    2223
Note: See TracChangeset for help on using the changeset viewer.