WordPress.org

Make WordPress Core

Ticket #22520: patch-more-toolbar-offset-v1.diff

File patch-more-toolbar-offset-v1.diff, 465 bytes (added by tlovett1, 2 years ago)

This version has the if statement within the jquery exists if

  • wp-includes/js/admin-bar.js

     
    6969                        interval: 100 
    7070                }); 
    7171 
     72                if ( window.location.hash ) 
     73                        window.scrollBy( 0,-32 ); 
     74 
    7275                $('#wp-admin-bar-get-shortlink').click(function(e){ 
    7376                        e.preventDefault(); 
    7477                        $(this).addClass('selected').children('.shortlink-input').blur(function(){