diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index b948f14ca..e3662e272 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -28,6 +28,20 @@ wp_admin_css( 'css/ie' );

'); - var TT = $('#tTips'); - - this.each(function() { - var el = $(this), txt; - - if ( txt = el.attr('title') ) el.attr('tip', txt).removeAttr('title'); - else return; - el.find('img').removeAttr('alt'); - - el.mouseover(function(e) { - txt = el.attr('tip'), o = el.offset(); - - clearTimeout(TT.sD); - TT.find('p').html(txt); - - TT.css({'top': o.top - 43, 'left': o.left - 5}); - TT.sD = setTimeout(function(){TT.fadeIn(150);}, 100); - }); - - el.mouseout(function() { - clearTimeout(TT.sD); - TT.css({display : 'none'}); - }) - }); + $.attrEn = function(elem, name, value) { + if ( typeof value === 'string' ) + value = $(''+value+'').html(); + return $.attr(elem, name, value); } -}(jQuery)); + $.fn.valEn = function(value) { + if ( typeof value === 'string' ) + value = $(''+value+'').html(); + return $.fn.val.call(this, value); + } +})(jQuery); */ - -//jQuery(function(){jQuery('#media-buttons a').tTips();}); diff --git a/wp-includes/class.wp-scripts.php b/wp-includes/class.wp-scripts.php index 858c73330..0349622e0 100644 --- a/wp-includes/class.wp-scripts.php +++ b/wp-includes/class.wp-scripts.php @@ -51,6 +51,7 @@ class WP_Scripts extends WP_Dependencies { $eol = ",\n"; } echo "\n\t}\n"; + echo "try{convertEntities($object_name);}catch(e){};\n"; echo "/* ]]> */\n"; echo "\n";