Make WordPress Core

Changeset 27758


Ignore:
Timestamp:
03/26/2014 11:12:48 PM (11 years ago)
Author:
nacin
Message:

Add an .html4-captions class to the editor when HTML5 captions are not supported, for theme use.

see #26642.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r27694 r27758  
    398398
    399399    editor.on( 'init', function() {
    400         var dom = editor.dom;
    401 
    402         if ( editor.getParam( 'wpeditimage_html5_captions' ) ) {
    403             dom.addClass( editor.getBody(), 'html5-captions' );
    404         }
     400        var dom = editor.dom,
     401            captionClass = editor.getParam( 'wpeditimage_html5_captions' ) ? 'html5-captions' : 'html4-captions';
     402
     403        dom.addClass( editor.getBody(), captionClass );
    405404
    406405        // Add caption field to the default image dialog
  • trunk/src/wp-includes/version.php

    r27714 r27758  
    1919 * @global string $tinymce_version
    2020 */
    21 $tinymce_version = '4020-20140319a';
     21$tinymce_version = '4020-20140326';
    2222
    2323/**
Note: See TracChangeset for help on using the changeset viewer.