Show
Ignore:
Timestamp:
07/16/08 21:36:17 (1 month ago)
Author:
azaozz
Message:

Removes the disabling of captions, but leaves couple of hooks so a plugin can do it easily. see #6812

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html

    r8313 r8358  
    55<title></title> 
    66 
    7 <script type="text/javascript" src="js/editimage.js?ver=311d"></script> 
     7<script type="text/javascript" src="js/editimage.js?ver=311e"></script> 
    88<script type="text/javascript" src="../../utils/form_utils.js?ver=311"></script> 
    99 
    10 <link rel="stylesheet" href="css/editimage.css?ver=311d" type="text/css" media="all" /> 
    11 <link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=2.6-beta3" type="text/css" media="all" /> 
     10<link rel="stylesheet" href="css/editimage.css?ver=311e" type="text/css" media="all" /> 
     11<link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=2.6" type="text/css" media="all" /> 
    1212<script type="text/javascript"> 
    1313if ( 'rtl' == tinyMCEPopup.editor.getParam('directionality','') ) 
  • trunk/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js

    r8313 r8358  
    1616                    return; 
    1717 
    18                 tb_show('', url + '/editimage.html?ver=311c&TB_iframe=true'); 
     18                tb_show('', url + '/editimage.html?ver=311e&TB_iframe=true'); 
    1919                tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 
    2020            }); 
  • trunk/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js

    r8356 r8358  
    249249        document.dir = tinyMCEPopup.editor.getParam('directionality',''); 
    250250 
    251         if ( ! tinyMCEPopup.editor.getParam('wpeditimage_do_captions', true) ) 
     251        if ( tinyMCEPopup.editor.getParam('wpeditimage_disable_captions', false) ) 
    252252            t.I('cap_field').style.display = 'none'; 
    253253 
  • trunk/wp-includes/js/tinymce/tiny_mce_config.php

    r8313 r8358  
    131131$mce_buttons_4 = implode($mce_buttons_4, ','); 
    132132 
    133 $do_captions = ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ? false : true; 
     133$no_captions = ( apply_filters( 'disable_captions', '' ) ) ? true : false; 
    134134 
    135135// TinyMCE init settings 
     
    166166    'content_css' => "$mce_css", 
    167167    'save_callback' => 'switchEditors.saveCallback', 
    168     'wpeditimage_do_captions' => $do_captions, 
     168    'wpeditimage_disable_captions' => $no_captions, 
    169169    'plugins' => "$plugins", 
    170170    // pass-through the settings for compression and caching, so they can be changed with "tiny_mce_before_init" 
     
    226226if ( $disk_cache ) { 
    227227 
    228     $cacheKey = apply_filters('tiny_mce_version', '20080710'); 
     228    $cacheKey = apply_filters('tiny_mce_version', '20080712'); 
    229229 
    230230    foreach ( $initArray as $v )