Make WordPress Core

Ticket #41702: 41702.diff

File 41702.diff, 706 bytes (added by subrataemfluence, 8 years ago)
  • .php

    diff --git a/edit-tags.php b/edit-tags-new.php
    index b575a83..bbf2181 100755
    old new do_action( "after-{$taxonomy}-table", $taxonomy ); 
    578578
    579579<?php if ( ! wp_is_mobile() ) : ?>
    580580<script type="text/javascript">
    581 try{document.forms.addtag['tag-name'].focus();}catch(e){}
     581        try{document.forms.addtag['tag-name'].focus();}catch(e){}
     582        try
     583        {
     584                jQuery(document).ready(function(){
     585                        jQuery("#tag-name").blur(function() {
     586                                if( jQuery.trim(jQuery("#tag-name").val()) != '' ) {
     587                                        jQuery("#tag-slug").val( jQuery.trim(jQuery("#tag-name").val().replace(/\s+/g, '-').toLowerCase()) );
     588                                }
     589                        });
     590                });
     591        }
     592        catch(e) { }
    582593</script>
    583594<?php
    584595endif;