<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[19269] trunk: New pointer styles.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/19269">19269</a></dd>
<dt>Author</dt> <dd>koopersmith</dd>
<dt>Date</dt> <dd>2011-11-14 10:30:14 +0000 (Mon, 14 Nov 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>New pointer styles. Arrows are currently optimized to point upward. props georgestephanis, chexee. see <a href="http://core.trac.wordpress.org/ticket/18693">#18693</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpincludescsswppointercss">trunk/wp-includes/css/wp-pointer.css</a></li>
<li><a href="#trunkwpincludescsswppointerdevcss">trunk/wp-includes/css/wp-pointer.dev.css</a></li>
<li><a href="#trunkwpincludesjswppointerdevjs">trunk/wp-includes/js/wp-pointer.dev.js</a></li>
<li><a href="#trunkwpincludesjswppointerjs">trunk/wp-includes/js/wp-pointer.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-admin/includes/template.php        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -1698,9 +1698,12 @@
</span><span class="cx"> &lt;script type=&quot;text/javascript&quot;&gt;
</span><span class="cx"> //&lt;![CDATA[
</span><span class="cx"> jQuery(document).ready( function($) {
</span><del>-        $('#wp-admin-bar-help').pointer({
</del><ins>+        $('#wpadminbar').pointer({
</ins><span class="cx">                 content: '&lt;?php echo $pointer_content; ?&gt;',
</span><del>-                position: 'top',
</del><ins>+                position: {
+                        edge:  'top',
+                        align: 'center'
+                },
</ins><span class="cx">                 close: function() {
</span><span class="cx">                         $.post( ajaxurl, {
</span><span class="cx">                                         pointer: 'wp330-admin-bar',
</span></span></pre></div>
<a id="trunkwpincludescsswppointercss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/wp-pointer.css (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/wp-pointer.css        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-includes/css/wp-pointer.css        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -1 +1 @@
</span><del>-.wp-pointer-content{padding:0 15px;background:white;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:1px 1px 2px rgba(0,0,0,0.4);-webkit-box-shadow:5px 5px 25px rgba(0,0,0,0.5);box-shadow:5px 5px 25px rgba(0,0,0,0.5);}.wp-pointer-buttons{margin:0 -15px;padding:5px 10px;overflow:auto;background:#f5f5f5;border-top:1px solid #ddd;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;}.wp-pointer-buttons a{float:right;display:inline-block;text-decoration:none;}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0;}.wp-pointer-arrow{z-index:10;}.wp-pointer-arrow-inner{z-index:20;}.wp-pointer-left{margin-left:10px;}.wp-pointer-right{margin-left:-10px;}.wp-pointer-top{margin-top:10px;}.wp-pointer-bottom{margin-top:-10px;}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow,.wp-pointer-top .wp-pointer-arrow,.wp-poin
 ter-bottom .wp-pointer-arrow{border:solid 10px transparent;}.wp-pointer-left .wp-pointer-arrow{border-right-color:#aaa;border-left-width:0;}.wp-pointer-right .wp-pointer-arrow{border-left-color:#aaa;border-right-width:0;}.wp-pointer-top .wp-pointer-arrow{border-top-width:0;}.wp-pointer-bottom .wp-pointer-arrow{border-top-color:#aaa;border-bottom-width:0;}.wp-pointer-left .wp-pointer-arrow-inner,.wp-pointer-right .wp-pointer-arrow-inner,.wp-pointer-top .wp-pointer-arrow-inner,.wp-pointer-bottom .wp-pointer-arrow-inner{border:solid 9px transparent;}.wp-pointer-left .wp-pointer-arrow-inner{border-right-color:#fff;border-left-width:0;top:-9px;left:2px;}.wp-pointer-right .wp-pointer-arrow-inner{border-left-color:#fff;border-right-width:0;top:-9px;right:2px;}.wp-pointer-top .wp-pointer-arrow-inner{border-bottom-color:#fff;border-top-width:0;top:2px;left:-9px;}.wp-pointer-bottom .wp-pointer-arrow-inner{border-top-color:#fff;border-bottom-width:0;bottom:2px;left:-9px;}
</del><span class="cx">\ No newline at end of file
</span><ins>+.wp-pointer-content{padding:0 0 10px;position:relative;font-size:13px;background:#fff;border-style:solid;border-width:1px;border-color:#dfdfdf;border-color:rgba(0,0,0,.125);-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.19);-moz-box-shadow:0 2px 4px rgba(0,0,0,.19);box-shadow:0 2px 4px rgba(0,0,0,.19);}.wp-pointer-content h3{position:relative;margin:0 0 5px;padding:15px 18px 14px 60px;line-height:1.4em;font-size:14px;color:#fff;border-radius:3px 3px 0 0;text-shadow:0 -1px 0 rgba(0,0,0,0.3);background-color:#8cc1e9;background-image:-webkit-linear-gradient(bottom,#72a7cf 0,#8cc1e9 100%);background-image:-moz-linear-gradient(bottom,#72a7cf 0,#8cc1e9 100%);background-image:-ms-linear-gradient(bottom,#72a7cf 0,#8cc1e9 100%);background-image:-o-linear-gradient(bottom,#72a7cf 0,#8cc1e9 100%);background-image:linear-gradient(bottom,#72a7cf 0,#8cc1e9 100%);}.wp-pointer-content h3:before{position:absolute;top:0;left:15px;content:' ';wi
 dth:36px;height:100%;background:url('../images/icon-pointer-flag.png') 0 50% no-repeat;}.wp-pointer-content p{padding:0 15px;}.wp-pointer-buttons{margin:0;padding:5px 15px;overflow:auto;}.wp-pointer-buttons a{float:right;display:inline-block;text-decoration:none;}.wp-pointer-buttons a.close{padding-left:3px;position:relative;}.wp-pointer-buttons a.close:before{content:' ';width:10px;height:100%;position:absolute;left:-10px;background:url('../../wp-admin/images/xit.gif') 0 50% no-repeat;}.wp-pointer-buttons a.close:hover:before{background-position:100% 50%;}.wp-pointer-arrow,.wp-pointer-arrow-inner{position:absolute;width:0;height:0;}.wp-pointer-arrow{z-index:10;background:url('../images/arrow-pointer-blue.png') 0 0 no-repeat;}.wp-pointer-arrow-inner{z-index:20;}.wp-pointer-top,.wp-pointer-undefined{padding-top:13px;}.wp-pointer-bottom{padding-bottom:13px;}.wp-pointer-left{padding-left:13px;}.wp-pointer-right{padding-right:13px;}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-b
 ottom .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{left:50px;width:30px;height:14px;}.wp-pointer-left .wp-pointer-arrow,.wp-pointer-right .wp-pointer-arrow{top:60px;width:14px;height:30px;}.wp-pointer-top .wp-pointer-arrow,.wp-pointer-undefined .wp-pointer-arrow{top:0;background-position:0 0;}.wp-pointer-bottom .wp-pointer-arrow{bottom:0;background-position:0 -46px;}.wp-pointer-left .wp-pointer-arrow{left:0;background-position:0 -15px;}.wp-pointer-right .wp-pointer-arrow{right:0;background-position:-16px -15px;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludescsswppointerdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/wp-pointer.dev.css (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/wp-pointer.dev.css        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-includes/css/wp-pointer.dev.css        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -1,28 +1,61 @@
</span><ins>+.wp-pointer {
+}
</ins><span class="cx"> 
</span><span class="cx"> .wp-pointer-content {
</span><del>-        padding: 0 15px;
-        background: white;
-        border: 1px solid #ccc;
</del><ins>+        padding: 0 0 10px;
+        position: relative;
+        font-size: 13px;
</ins><span class="cx"> 
</span><ins>+        background: #fff;
+        border-style: solid;
+        border-width: 1px;
+        /* Fallback for non-rgba-compliant browsers */
+        border-color: #dfdfdf;
+        /* Use rgba to look better against non-white backgrounds. */
+        border-color: rgba(0,0,0,.125);
</ins><span class="cx">         -webkit-border-radius: 3px;
</span><span class="cx">         border-radius: 3px;
</span><span class="cx"> 
</span><del>-        -moz-box-shadow: 1px 1px 2px rgba( 0, 0, 0, 0.4 );
-        -webkit-box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
-        box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.5);
</del><ins>+        -webkit-box-shadow: 0 2px 4px rgba(0,0,0,.19);
+        -moz-box-shadow: 0 2px 4px rgba(0,0,0,.19);
+        box-shadow: 0 2px 4px rgba(0,0,0,.19);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.wp-pointer-content h3 {
+        position: relative;
+        margin: 0 0 5px;
+        padding: 15px 18px 14px 60px;
+        line-height: 1.4em;
+        font-size: 14px;
+        color: #fff;
+        border-radius: 3px 3px 0 0;
+        text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
+        background-color: #8cc1e9;
+        background-image: -webkit-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
+        background-image: -moz-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
+        background-image: -ms-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
+        background-image: -o-linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
+        background-image: linear-gradient(bottom, rgb(114,167,207) 0%, rgb(140,193,233) 100%);
+}
+
+.wp-pointer-content h3:before {
+        position: absolute;
+        top: 0;
+        left: 15px;
+        content: ' ';
+        width: 36px;
+        height: 100%;
+        background: url('../images/icon-pointer-flag.png') 0 50% no-repeat;
+}
+
+.wp-pointer-content p {
+        padding: 0 15px;
+}
+
</ins><span class="cx"> .wp-pointer-buttons {
</span><del>-        margin: 0 -15px;
-        padding: 5px 10px;
</del><ins>+        margin: 0;
+        padding: 5px 15px;
</ins><span class="cx">         overflow: auto;
</span><del>-        background: #f5f5f5;
-        border-top: 1px solid #ddd;
-
-        -webkit-border-bottom-right-radius: 3px;
-        -webkit-border-bottom-left-radius: 3px;
-        border-bottom-right-radius: 3px;
-        border-bottom-left-radius: 3px;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .wp-pointer-buttons a {
</span><span class="lines">@@ -31,6 +64,24 @@
</span><span class="cx">         text-decoration: none;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+.wp-pointer-buttons a.close {
+        padding-left:3px;
+        position: relative;
+}
+
+.wp-pointer-buttons a.close:before {
+        content: ' ';
+        width:10px;
+        height:100%;
+        position:absolute;
+        left:-10px;
+        background:url('../../wp-admin/images/xit.gif') 0 50% no-repeat;
+}
+
+.wp-pointer-buttons a.close:hover:before {
+        background-position:100% 50%;
+}
+
</ins><span class="cx"> /* The arrow base class must take up no space, even with transparent borders. */
</span><span class="cx"> .wp-pointer-arrow,
</span><span class="cx"> .wp-pointer-arrow-inner {
</span><span class="lines">@@ -41,86 +92,66 @@
</span><span class="cx"> 
</span><span class="cx"> .wp-pointer-arrow {
</span><span class="cx">         z-index: 10;
</span><ins>+        background:url('../images/arrow-pointer-blue.png') 0 0 no-repeat;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .wp-pointer-arrow-inner {
</span><span class="cx">         z-index: 20;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-left {
-        margin-left: 10px;
</del><ins>+/* Make Room for the Arrow! */
+.wp-pointer-top,
+.wp-pointer-undefined {
+        padding-top: 13px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-right {
-        margin-left: -10px;
</del><ins>+.wp-pointer-bottom {
+        padding-bottom: 13px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-top {
-        margin-top: 10px;
</del><ins>+.wp-pointer-left {
+        padding-left: 13px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-bottom {
-        margin-top: -10px;
</del><ins>+.wp-pointer-right {
+        padding-right: 13px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-left .wp-pointer-arrow,
-.wp-pointer-right .wp-pointer-arrow,
</del><ins>+/* Base Size &amp; Positioning */
</ins><span class="cx"> .wp-pointer-top .wp-pointer-arrow,
</span><del>-.wp-pointer-bottom .wp-pointer-arrow {
-        border: solid 10px transparent;
</del><ins>+.wp-pointer-bottom .wp-pointer-arrow,
+.wp-pointer-undefined .wp-pointer-arrow {
+        left: 50px;
+        width: 30px;
+        height: 14px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-left .wp-pointer-arrow {
-        border-right-color: #aaa;
-        border-left-width: 0;
-}
-
</del><ins>+.wp-pointer-left .wp-pointer-arrow,
</ins><span class="cx"> .wp-pointer-right .wp-pointer-arrow {
</span><del>-        border-left-color: #aaa;
-        border-right-width: 0;
</del><ins>+        top: 60px;
+        width: 14px;
+        height: 30px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-top .wp-pointer-arrow {
-        border-top-width: 0;
</del><ins>+/* Arrow Sprite */
+.wp-pointer-top .wp-pointer-arrow,
+.wp-pointer-undefined .wp-pointer-arrow {
+        top: 0;
+        background-position: 0 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .wp-pointer-bottom .wp-pointer-arrow {
</span><del>-        border-top-color: #aaa;
-        border-bottom-width: 0;
</del><ins>+        bottom: 0;
+        background-position: 0 -46px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-left .wp-pointer-arrow-inner,
-.wp-pointer-right .wp-pointer-arrow-inner,
-.wp-pointer-top .wp-pointer-arrow-inner,
-.wp-pointer-bottom .wp-pointer-arrow-inner {
-        border: solid 9px transparent;
</del><ins>+.wp-pointer-left .wp-pointer-arrow {
+        left: 0;
+        background-position: 0 -15px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-left .wp-pointer-arrow-inner {
-        border-right-color: #fff;
-        border-left-width: 0;
-        top: -9px;
-        left: 2px;
</del><ins>+.wp-pointer-right .wp-pointer-arrow {
+        right:0;
+        background-position:-16px -15px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-.wp-pointer-right .wp-pointer-arrow-inner {
-        border-left-color: #fff;
-        border-right-width: 0;
-        top: -9px;
-        right: 2px;
-}
-
-.wp-pointer-top .wp-pointer-arrow-inner {
-        border-bottom-color: #fff;
-        border-top-width: 0;
-        top: 2px;
-        left: -9px;
-}
-
-.wp-pointer-bottom .wp-pointer-arrow-inner {
-        border-top-color: #fff;
-        border-bottom-width: 0;
-        bottom: 2px;
-        left: -9px;
-}
-
</del></span></pre></div>
<a id="trunkwpincludesjswppointerdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-pointer.dev.js (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-pointer.dev.js        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-includes/js/wp-pointer.dev.js        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -8,13 +8,13 @@
</span><span class="cx">         $.widget(&quot;wp.pointer&quot;, {
</span><span class="cx">                 options: {
</span><span class="cx">                         pointerClass: 'wp-pointer',
</span><del>-                        pointerWidth: 400,
</del><ins>+                        pointerWidth: 320,
</ins><span class="cx">                         content: function( respond, event, t ) {
</span><span class="cx">                                 return $(this).text();
</span><span class="cx">                         },
</span><span class="cx">                         buttons: function( event, t ) {
</span><del>-                                var close  = ( wpPointerL10n ) ? wpPointerL10n.close : 'Close',
-                                        button = $('&lt;a href=&quot;#&quot;&gt;' + close + '&lt;/a&gt;');
</del><ins>+                                var close  = ( wpPointerL10n ) ? wpPointerL10n.dismiss : 'Dismiss',
+                                        button = $('&lt;a class=&quot;close&quot; href=&quot;#&quot;&gt;' + close + '&lt;/a&gt;');
</ins><span class="cx"> 
</span><span class="cx">                                 return button.bind( 'click.pointer', function() {
</span><span class="cx">                                         t.element.pointer('close');
</span><span class="lines">@@ -163,40 +163,18 @@
</span><span class="cx"> 
</span><span class="cx">                 repoint: function() {
</span><span class="cx">                         var o = this.options,
</span><del>-                                position,
-                                at;
</del><ins>+                                edge;
</ins><span class="cx"> 
</span><span class="cx">                         if ( o.disabled )
</span><span class="cx">                                 return;
</span><span class="cx"> 
</span><del>-                        // Generate arrow position from the box position.
-                        position = $.extend( this._processPosition( o.position ), {
-                                of: this.pointer,
-                                offset: ''
-                        });
</del><ins>+                        edge = ( typeof o.position == 'string' ) ? o.position : o.position.edge;
</ins><span class="cx"> 
</span><del>-                        // Swap at and my; we're positioning the arrow relative to the box.
-                        at = position.at + '';
-                        position.at = position.my;
-                        position.my = at;
-
-                        // Don't align the arrows exactly with the edge.
-                        if ( position.align != 'center' ) {
-                                position.offset = ( position.align == 'top' || position.align == 'left' ) ? 15 : -15;
-                                if ( position.align == 'top' || position.align == 'bottom' )
-                                        position.offset = '0 ' + position.offset;
-                                else
-                                        position.offset = position.offset + ' 0';
-                        }
-
</del><span class="cx">                         // Remove arrow classes.
</span><span class="cx">                         this.pointer[0].className = this.pointer[0].className.replace( /wp-pointer-[^\s'&quot;]*/, '' );
</span><span class="cx"> 
</span><span class="cx">                         // Add arrow class.
</span><del>-                        this.pointer.addClass( 'wp-pointer-' + position.edge );
-
-                        // Reposition arrow.
-                        this.arrow.position( position );
</del><ins>+                        this.pointer.addClass( 'wp-pointer-' + edge );
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 _processPosition: function( position ) {
</span></span></pre></div>
<a id="trunkwpincludesjswppointerjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-pointer.js (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-pointer.js        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-includes/js/wp-pointer.js        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(c){var a=0,b=9999;c.widget(&quot;wp.pointer&quot;,{options:{pointerClass:&quot;wp-pointer&quot;,pointerWidth:400,content:function(f,e,d){return c(this).text()},buttons:function(f,e){var g=(wpPointerL10n)?wpPointerL10n.close:&quot;Close&quot;,d=c('&lt;a href=&quot;#&quot;&gt;'+g+&quot;&lt;/a&gt;&quot;);return d.bind(&quot;click.pointer&quot;,function(){e.element.pointer(&quot;close&quot;)})},position:&quot;top&quot;,show:function(e,d){d.pointer.show();d.opened()},hide:function(e,d){d.pointer.hide();d.closed()},document:document},_create:function(){var e,d;this.content=c('&lt;div class=&quot;wp-pointer-content&quot;&gt;&lt;/div&gt;');this.arrow=c('&lt;div class=&quot;wp-pointer-arrow&quot;&gt;&lt;div class=&quot;wp-pointer-arrow-inner&quot;&gt;&lt;/div&gt;&lt;/div&gt;');d=this.element.parents().add(this.element);e=&quot;absolute&quot;;if(d.filter(function(){return&quot;fixed&quot;===c(this).css(&quot;position&quot;)}).length){e=&quot;fixed&quot;}this.poin
 ter=c(&quot;&lt;div /&gt;&quot;).append(this.content).append(this.arrow).attr(&quot;id&quot;,&quot;wp-pointer-&quot;+a++).addClass(this.options.pointerClass).css({position:e,width:this.options.pointerWidth+&quot;px&quot;,display:&quot;none&quot;}).appendTo(this.options.document.body)},_setOption:function(d,f){var g=this.options,e=this.pointer;if(d===&quot;document&quot;&amp;&amp;f!==g.document){e.detach().appendTo(f.body)}else{if(d===&quot;pointerClass&quot;){e.removeClass(g.pointerClass).addClass(f)}}c.Widget.prototype._setOption.apply(this,arguments);if(d===&quot;position&quot;){this.reposition()}else{if(d===&quot;content&quot;&amp;&amp;this.active){this.update()}}},destroy:function(){this.pointer.remove();c.Widget.prototype.destroy.call(this)},widget:function(){return this.pointer},update:function(g){var e=this,h=this.options,d=c.Deferred(),f;if(h.disabled){return}d.done(function(i){e._update(g,i)});if(typeof h.content===&quot;string&quot;){f=h.content}else{f=h.content.ca
 ll(this.element[0],d.resolve,g,this._handoff())}if(f){d.resolve(f)}return d.promise()},_update:function(f,e){var d,g=this.options;if(!e){return}this.pointer.stop();this.content.html(e);d=g.buttons.call(this.element[0],f,this._handoff());if(d){d.wrap('&lt;div class=&quot;wp-pointer-buttons&quot; /&gt;').parent().appendTo(this.content)}this.reposition()},reposition:function(){var d;if(this.options.disabled){return}d=this._processPosition(this.options.position);this.pointer.css({top:0,left:0,zIndex:b++}).show().position(c.extend({of:this.element},d));this.repoint()},repoint:function(){var f=this.options,e,d;if(f.disabled){return}e=c.extend(this._processPosition(f.position),{of:this.pointer,offset:&quot;&quot;});d=e.at+&quot;&quot;;e.at=e.my;e.my=d;if(e.align!=&quot;center&quot;){e.offset=(e.align==&quot;top&quot;||e.align==&quot;left&quot;)?15:-15;if(e.align==&quot;top&quot;||e.align==&quot;bottom&quot;){e.offset=&quot;0 &quot;+e.offset}else{e.offset=e.offset+&quot; 0&quot;}}th
 is.pointer[0].className=this.pointer[0].className.replace(/wp-pointer-[^\s'&quot;]*/,&quot;&quot;);this.pointer.addClass(&quot;wp-pointer-&quot;+e.edge);this.arrow.position(e)},_processPosition:function(e){var f={top:&quot;bottom&quot;,bottom:&quot;top&quot;,left:&quot;right&quot;,right:&quot;left&quot;},d;if(typeof e==&quot;string&quot;){d={edge:e+&quot;&quot;}}else{d=c.extend({},e)}if(!d.edge){return d}if(d.edge==&quot;top&quot;||d.edge==&quot;bottom&quot;){d.align=d.align||&quot;left&quot;;d.at=d.at||d.align+&quot; &quot;+f[d.edge];d.my=d.my||d.align+&quot; &quot;+d.edge}else{d.align=d.align||&quot;top&quot;;d.at=d.at||f[d.edge]+&quot; &quot;+d.align;d.my=d.my||d.edge+&quot; &quot;+d.align}return d},open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.update().done(function(){d._open(e)})},_open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.active=true;this._trigger(&quot;open&quot;,e,this._handoff());this._tri
 gger(&quot;show&quot;,e,this._handoff({opened:function(){d._trigger(&quot;opened&quot;,e,d._handoff())}}))},close:function(e){if(!this.active||this.options.disabled){return}var d=this;this.active=false;this._trigger(&quot;close&quot;,e,this._handoff());this._trigger(&quot;hide&quot;,e,this._handoff({closed:function(){d._trigger(&quot;closed&quot;,e,d._handoff())}}))},sendToTop:function(d){if(this.active){this.pointer.css(&quot;z-index&quot;,b++)}},toggle:function(d){if(this.pointer.is(&quot;:hidden&quot;)){this.open(d)}else{this.close(d)}},_handoff:function(d){return c.extend({pointer:this.pointer,element:this.element},d)}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(c){var a=0,b=9999;c.widget(&quot;wp.pointer&quot;,{options:{pointerClass:&quot;wp-pointer&quot;,pointerWidth:320,content:function(f,e,d){return c(this).text()},buttons:function(f,e){var g=(wpPointerL10n)?wpPointerL10n.dismiss:&quot;Dismiss&quot;,d=c('&lt;a class=&quot;close&quot; href=&quot;#&quot;&gt;'+g+&quot;&lt;/a&gt;&quot;);return d.bind(&quot;click.pointer&quot;,function(){e.element.pointer(&quot;close&quot;)})},position:&quot;top&quot;,show:function(e,d){d.pointer.show();d.opened()},hide:function(e,d){d.pointer.hide();d.closed()},document:document},_create:function(){var e,d;this.content=c('&lt;div class=&quot;wp-pointer-content&quot;&gt;&lt;/div&gt;');this.arrow=c('&lt;div class=&quot;wp-pointer-arrow&quot;&gt;&lt;div class=&quot;wp-pointer-arrow-inner&quot;&gt;&lt;/div&gt;&lt;/div&gt;');d=this.element.parents().add(this.element);e=&quot;absolute&quot;;if(d.filter(function(){return&quot;fixed&quot;===c(this).css(&quot;position&quot;)}).length){e
 =&quot;fixed&quot;}this.pointer=c(&quot;&lt;div /&gt;&quot;).append(this.content).append(this.arrow).attr(&quot;id&quot;,&quot;wp-pointer-&quot;+a++).addClass(this.options.pointerClass).css({position:e,width:this.options.pointerWidth+&quot;px&quot;,display:&quot;none&quot;}).appendTo(this.options.document.body)},_setOption:function(d,f){var g=this.options,e=this.pointer;if(d===&quot;document&quot;&amp;&amp;f!==g.document){e.detach().appendTo(f.body)}else{if(d===&quot;pointerClass&quot;){e.removeClass(g.pointerClass).addClass(f)}}c.Widget.prototype._setOption.apply(this,arguments);if(d===&quot;position&quot;){this.reposition()}else{if(d===&quot;content&quot;&amp;&amp;this.active){this.update()}}},destroy:function(){this.pointer.remove();c.Widget.prototype.destroy.call(this)},widget:function(){return this.pointer},update:function(g){var e=this,h=this.options,d=c.Deferred(),f;if(h.disabled){return}d.done(function(i){e._update(g,i)});if(typeof h.content===&quot;string&quot;){f=h
 .content}else{f=h.content.call(this.element[0],d.resolve,g,this._handoff())}if(f){d.resolve(f)}return d.promise()},_update:function(f,e){var d,g=this.options;if(!e){return}this.pointer.stop();this.content.html(e);d=g.buttons.call(this.element[0],f,this._handoff());if(d){d.wrap('&lt;div class=&quot;wp-pointer-buttons&quot; /&gt;').parent().appendTo(this.content)}this.reposition()},reposition:function(){var d;if(this.options.disabled){return}d=this._processPosition(this.options.position);this.pointer.css({top:0,left:0,zIndex:b++}).show().position(c.extend({of:this.element},d));this.repoint()},repoint:function(){var e=this.options,d;if(e.disabled){return}d=(typeof e.position==&quot;string&quot;)?e.position:e.position.edge;this.pointer[0].className=this.pointer[0].className.replace(/wp-pointer-[^\s'&quot;]*/,&quot;&quot;);this.pointer.addClass(&quot;wp-pointer-&quot;+d)},_processPosition:function(e){var f={top:&quot;bottom&quot;,bottom:&quot;top&quot;,left:&quot;right&quot;,righ
 t:&quot;left&quot;},d;if(typeof e==&quot;string&quot;){d={edge:e+&quot;&quot;}}else{d=c.extend({},e)}if(!d.edge){return d}if(d.edge==&quot;top&quot;||d.edge==&quot;bottom&quot;){d.align=d.align||&quot;left&quot;;d.at=d.at||d.align+&quot; &quot;+f[d.edge];d.my=d.my||d.align+&quot; &quot;+d.edge}else{d.align=d.align||&quot;top&quot;;d.at=d.at||f[d.edge]+&quot; &quot;+d.align;d.my=d.my||d.edge+&quot; &quot;+d.align}return d},open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.update().done(function(){d._open(e)})},_open:function(e){var d=this,f=this.options;if(this.active||f.disabled){return}this.active=true;this._trigger(&quot;open&quot;,e,this._handoff());this._trigger(&quot;show&quot;,e,this._handoff({opened:function(){d._trigger(&quot;opened&quot;,e,d._handoff())}}))},close:function(e){if(!this.active||this.options.disabled){return}var d=this;this.active=false;this._trigger(&quot;close&quot;,e,this._handoff());this._trigger(&quot;hide&quot;,e,
 this._handoff({closed:function(){d._trigger(&quot;closed&quot;,e,d._handoff())}}))},sendToTop:function(d){if(this.active){this.pointer.css(&quot;z-index&quot;,b++)}},toggle:function(d){if(this.pointer.is(&quot;:hidden&quot;)){this.open(d)}else{this.close(d)}},_handoff:function(d){return c.extend({pointer:this.pointer,element:this.element},d)}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (19268 => 19269)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-11-13 18:37:30 UTC (rev 19268)
+++ trunk/wp-includes/script-loader.php        2011-11-14 10:30:14 UTC (rev 19269)
</span><span class="lines">@@ -96,9 +96,9 @@
</span><span class="cx">                 'broken' =&gt; __('An unidentified error has occurred.')
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-pointer', &quot;/wp-includes/js/wp-pointer$suffix.js&quot;, array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111017', 1 );
</del><ins>+        $scripts-&gt;add( 'wp-pointer', &quot;/wp-includes/js/wp-pointer$suffix.js&quot;, array( 'jquery-ui-widget', 'jquery-ui-position' ), '20111114', 1 );
</ins><span class="cx">         $scripts-&gt;localize( 'wp-pointer', 'wpPointerL10n', array(
</span><del>-                'close' =&gt; __('Close'),
</del><ins>+                'dismiss' =&gt; __('Dismiss'),
</ins><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20111111', 1 );
</span><span class="lines">@@ -456,7 +456,7 @@
</span><span class="cx">         $styles-&gt;add( 'admin-bar', &quot;/wp-includes/css/admin-bar$suffix.css&quot;, array(), '20111111' );
</span><span class="cx">         $styles-&gt;add( 'wp-jquery-ui-dialog', &quot;/wp-includes/css/jquery-ui-dialog$suffix.css&quot;, array(), '20111107' );
</span><span class="cx">         $styles-&gt;add( 'editor-buttons', &quot;/wp-includes/css/editor-buttons$suffix.css&quot;, array(), '20111107' );
</span><del>-        $styles-&gt;add( 'wp-pointer', &quot;/wp-includes/css/wp-pointer$suffix.css&quot;, array(), '20111017' );
</del><ins>+        $styles-&gt;add( 'wp-pointer', &quot;/wp-includes/css/wp-pointer$suffix.css&quot;, array(), '20111114' );
</ins><span class="cx"> 
</span><span class="cx">         foreach ( $rtl_styles as $rtl_style ) {
</span><span class="cx">                 $styles-&gt;add_data( $rtl_style, 'rtl', true );
</span></span></pre>
</div>
</div>

</body>
</html>