WordPress.org

Make WordPress Core

Ticket #9740: patch-#9740.diff

File patch-#9740.diff, 580 bytes (added by petervanderdoes, 5 years ago)
  • wp-admin/js/post.dev.js

    diff -Nuar orig/wp-admin/js/post.dev.js patched/wp-admin/js/post.dev.js
    old new  
    237237        $('#category-tabs a').click(function(){ 
    238238                var t = $(this).attr('href'); 
    239239                $(this).parent().addClass('ui-tabs-selected').siblings('li').removeClass('ui-tabs-selected'); 
    240                 $('.ui-tabs-panel').hide(); 
     240                $(this).parent().parent().siblings('.ui-tabs-panel').hide(); 
    241241                $(t).show(); 
    242242                if ( '#categories-all' == t ) 
    243243                        deleteUserSetting('cats');