WordPress.org

Make WordPress Core

Changeset 27602


Ignore:
Timestamp:
03/19/2014 02:29:12 AM (8 years ago)
Author:
azaozz
Message:

TinyMCE show/hide toolbar row: fix the value for getUserSetting('hidetb'): 0 == hidden, 1 == visible, see #24067

File:
1 edited

Legend:

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

    r27545 r27602  
    4343
    4444            if ( state === 'hide' ) {
    45                 setUserSetting('hidetb', '1');
     45                setUserSetting('hidetb', '0');
    4646                wpAdvButton && wpAdvButton.active( false );
    4747            } else {
    48                 setUserSetting('hidetb', '0');
     48                setUserSetting('hidetb', '1');
    4949                wpAdvButton && wpAdvButton.active( true );
    5050            }
     
    6363    // Hide the toolbars after loading
    6464    editor.on( 'PostRender', function() {
    65         if ( getUserSetting('hidetb', '1') === '1' ) {
     65        if ( getUserSetting('hidetb', '0') === '0' ) {
    6666            toggleToolbars( 'hide' );
    6767        }
Note: See TracChangeset for help on using the changeset viewer.