Make WordPress Core

Changeset 17522


Ignore:
Timestamp:
03/17/2011 10:01:40 PM (14 years ago)
Author:
azaozz
Message:

Allow JS functions in the TinyMCE init array, fixes #15596

File:
1 edited

Legend:

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

    r17457 r17522  
    16361636            $mce_options .= $k . ':' . $val . ', ';
    16371637            continue;
    1638         } elseif ( !empty($v) && is_string($v) && ( '{' == $v{0} || '[' == $v{0} ) ) {
     1638        } elseif ( !empty($v) && is_string($v) && ( '{' == $v{0} || '[' == $v{0} || preg_match('/^\(?function ?\(/', $v) ) ) {
    16391639            $mce_options .= $k . ':' . $v . ', ';
    16401640            continue;
Note: See TracChangeset for help on using the changeset viewer.