Make WordPress Core


Ignore:
Timestamp:
08/08/2014 09:17:15 PM (11 years ago)
Author:
azaozz
Message:

TinyMCE: don't access the parent window when opening the (iframe based) Help/Keyboard Shortcuts modal. Fixes #20094.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/wp-mce-help.php

    r28032 r29449  
    9696<body class="windows wp-core-ui">
    9797<script type="text/javascript">
    98 var win = window.dialogArguments || opener || parent || top;
    99 
    100 if ( win && win.tinymce && win.tinymce.isMac ) {
    101     document.body.className = document.body.className.replace(/windows/, 'macos');
     98if ( navigator.userAgent.indexOf( 'Mac OS' ) > -1 ) {
     99    document.body.className = document.body.className.replace( /windows/, 'macos' );
    102100}
    103101</script>
Note: See TracChangeset for help on using the changeset viewer.