WordPress.org

Make WordPress Core

Changeset 23298


Ignore:
Timestamp:
01/14/2013 05:34:45 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 trunk

File:
1 edited

Legend:

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

    r23262 r23298  
    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.