WordPress.org

Make WordPress Core

Ticket #9840: 9840.1.diff

File 9840.1.diff, 847 bytes (added by azaozz, 4 years ago)
  • wp-admin/includes/post.php

     
    13341334                $initArray = apply_filters('tiny_mce_before_init', $initArray); 
    13351335        } 
    13361336 
     1337        if ( empty($initArray['theme_advanced_buttons2']) && !empty($initArray['theme_advanced_buttons3']) ) { 
     1338                $initArray['theme_advanced_buttons2'] = $initArray['theme_advanced_buttons3']; 
     1339                $initArray['theme_advanced_buttons3'] = ''; 
     1340        } 
     1341 
     1342        if ( empty($initArray['theme_advanced_buttons3']) && !empty($initArray['theme_advanced_buttons4']) ) { 
     1343                $initArray['theme_advanced_buttons3'] = $initArray['theme_advanced_buttons4']; 
     1344                $initArray['theme_advanced_buttons4'] = ''; 
     1345        } 
     1346 
    13371347        if ( ! isset($concatenate_scripts) ) 
    13381348                script_concat_settings(); 
    13391349