Make WordPress Core


Ignore:
Timestamp:
10/02/2008 04:30:14 PM (17 years ago)
Author:
azaozz
Message:

Update TinyMCE to 3.2.0 and remove compression, fixes #7827

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/langs/wp-langs.php

    r8307 r9064  
    11<?php
     2
     3function mce_put_file( $path, $content ) {
     4    if ( function_exists('file_put_contents') )
     5        return @file_put_contents( $path, $content );
     6
     7    $newfile = false;
     8    $fp = @fopen( $path, 'wb' );
     9    if ($fp) {
     10        $newfile = fwrite( $fp, $content );
     11        fclose($fp);
     12    }
     13    return $newfile;
     14}
    215
    316// escape text only if it needs translating
     
    922}
    1023
    11 $strings = 'tinyMCE.addI18n({' . $language . ':{
     24$lang = 'tinyMCE.addI18n({' . $language . ':{
    1225common:{
    1326edit_confirm:"' . mce_escape( __('Do you want to use the WYSIWYG mode for this textarea?') ) . '",
     
    439452});
    440453';
    441 ?>
     454
     455// mce_put_file( ABSPATH . WPINC . '/js/tinymce/langs/wp-langs-' . $language . '.js', $lang );
Note: See TracChangeset for help on using the changeset viewer.