Skip to content

Instantly share code, notes, and snippets.

@dboutote
Last active February 20, 2016 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dboutote/d91ec98b8cfdad694fb7 to your computer and use it in GitHub Desktop.
Save dboutote/d91ec98b8cfdad694fb7 to your computer and use it in GitHub Desktop.
Removes link around locked tags; removes <span> from title attr. term_name filter.
( function ($) {
'use strict';
var locked_tags = $('table.tags .dashicons-lock').parents('a.row-title');
locked_tags.contents().unwrap().parent().wrapInner('<span class="row-title"></span>');
locked_tags.attr('title', function(){
return 'Edit "' + $.trim( $(this).html().replace(/<[^>]+>/ig,"") ) + '"';
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment