Make WordPress Core

Changeset 16236


Ignore:
Timestamp:
11/08/2010 05:15:14 PM (14 years ago)
Author:
westi
Message:

Encode quotes and chevrons in the HTML editor version of the generated captions too. Fixes #15343.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r16073 r16236  
    141141    $width = $matches[1];
    142142
     143    $caption = str_replace( array( '>',     '<',    '"',        "'" ),
     144                            array( '&gt;',  '&lt;', '&quot;',   '&#039;' ),
     145                            $caption
     146                          );
     147   
    143148    $html = preg_replace( '/(class=["\'][^\'"]*)align(none|left|right|center)\s?/', '$1', $html );
    144149    if ( empty($align) )
Note: See TracChangeset for help on using the changeset viewer.