Make WordPress Core


Ignore:
Timestamp:
07/11/2008 03:59:14 PM (16 years ago)
Author:
ryan
Message:

Rename wp_caption shortcode to caption. Allow themes to disable captioning. Use dashes instead of underscores in class names. Props azaozz. see #6812

File:
1 edited

Legend:

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

    r8307 r8313  
    130130$mce_buttons_4 = apply_filters('mce_buttons_4', array());
    131131$mce_buttons_4 = implode($mce_buttons_4, ',');
     132
     133$do_captions = ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ? false : true;
    132134
    133135// TinyMCE init settings
     
    164166    'content_css' => "$mce_css",
    165167    'save_callback' => 'switchEditors.saveCallback',
     168    'wpeditimage_do_captions' => $do_captions,
    166169    'plugins' => "$plugins",
    167170    // pass-through the settings for compression and caching, so they can be changed with "tiny_mce_before_init"
     
    223226if ( $disk_cache ) {
    224227
    225     $cacheKey = apply_filters('tiny_mce_version', '20080709');
     228    $cacheKey = apply_filters('tiny_mce_version', '20080710');
    226229
    227230    foreach ( $initArray as $v )
Note: See TracChangeset for help on using the changeset viewer.