<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[13719] trunk: Default target to _self.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13719">13719</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-03-16 19:20:10 +0000 (Tue, 16 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Default target to _self.  Add some sanitization and gettext. see <a href="http://trac.wordpress.org/ticket/11817">#11817</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjsnavmenudefaultitemsdevjs">trunk/wp-admin/js/nav-menu-default-items.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenudefaultitemsjs">trunk/wp-admin/js/nav-menu-default-items.js</a></li>
<li><a href="#trunkwpadminjsnavmenudynamicfunctionsdevjs">trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenudynamicfunctionsjs">trunk/wp-admin/js/nav-menu-dynamic-functions.js</a></li>
<li><a href="#trunkwpadminnavmenusphp">trunk/wp-admin/nav-menus.php</a></li>
<li><a href="#trunkwpincludesnavmenuphp">trunk/wp-includes/nav-menu.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjsnavmenudefaultitemsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu-default-items.dev.js (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-default-items.dev.js        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-admin/js/nav-menu-default-items.dev.js        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -93,6 +93,6 @@
</span><span class="cx">                 var link_name = jQuery(e.currentTarget).parent().parent().find('#custom-menu-item-name').val();
</span><span class="cx">                 
</span><span class="cx">                 // Add link to menu
</span><del>-                wp_add_item_to_menu( 0, '', 'custom', navMenuL10n.custom, 0, link_name, link_url, '', '', '_none', '', '' );
</del><ins>+                wp_add_item_to_menu( 0, '', 'custom', navMenuL10n.custom, 0, link_name, link_url, '', '', '_self', '', '' );
</ins><span class="cx">         });
</span><span class="cx"> });
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudefaultitemsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu-default-items.js (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-default-items.js        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-admin/js/nav-menu-default-items.js        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(a){wp_drag_and_drop();a(&quot;#update-nav-menu .deletion&quot;).click(function(){if(confirm(navMenuL10n.warnDelete)){return true}else{return false}});a(&quot;#save_menu&quot;).click(function(){return wp_update_post_data()});a(&quot;.if-js-closed&quot;).removeClass(&quot;if-js-closed&quot;).addClass(&quot;closed&quot;);postboxes.add_postbox_toggles(&quot;menus&quot;);a(&quot;.quick-search&quot;).click(function(){a(this).attr(&quot;value&quot;,&quot;&quot;)});a(&quot;.quick-search-submit&quot;).click(function(){a(this).siblings(&quot;.quick-search&quot;).search()});a(&quot;#menu-container .item-edit&quot;).click(function(){return wp_edit_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#menu-container .item-delete&quot;).live(&quot;click&quot;,function(b){return wp_remove_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#update-menu-item&quot;).click(function(){wp_update_menu_item();return tb_remove()});a(&quot;#cancel-save&quot;).click(function(){return tb_remove()});a(&quot;.show-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.hide-all&quot;).show()});a(&quot;.hide-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.show-all&quot;).show()});a(&quot;.add-to-menu&quot;).click(function(b){return wp_add_checked_items_to_menu(b.currentTarget)});a(&quot;#add-custom-links .add-to-menu a&quot;).click(function(d){var b=jQuery(d.currentTarget).parent().parent().find(&quot;#custom-menu-item-url&quot;).val();var c=jQuery(d.currentTarget).parent().parent().find(&quot;#custom-menu-item-name&quot;).val();wp_add_item_to_menu(0,&quot;&quot;,&quot;custom&quot;,navMenuL10n.custom,0,c,b,&quot;&quot;,&quot;&quot;,&quot;_none&quot;,&quot;&quot;,&quot;&quot;)})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){wp_drag_and_drop();a(&quot;#update-nav-menu .deletion&quot;).click(function(){if(confirm(navMenuL10n.warnDelete)){return true}else{return false}});a(&quot;#save_menu&quot;).click(function(){return wp_update_post_data()});a(&quot;.if-js-closed&quot;).removeClass(&quot;if-js-closed&quot;).addClass(&quot;closed&quot;);postboxes.add_postbox_toggles(&quot;menus&quot;);a(&quot;.quick-search&quot;).click(function(){a(this).attr(&quot;value&quot;,&quot;&quot;)});a(&quot;.quick-search-submit&quot;).click(function(){a(this).siblings(&quot;.quick-search&quot;).search()});a(&quot;#menu-container .item-edit&quot;).click(function(){return wp_edit_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#menu-container .item-delete&quot;).live(&quot;click&quot;,function(b){return wp_remove_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#update-menu-item&quot;).click(function(){wp_update_menu_item();return tb_remove()});a(&quot;#cancel-save&quot;).click(function(){return tb_remove()});a(&quot;.show-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.hide-all&quot;).show()});a(&quot;.hide-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.show-all&quot;).show()});a(&quot;.add-to-menu&quot;).click(function(b){return wp_add_checked_items_to_menu(b.currentTarget)});a(&quot;#add-custom-links .add-to-menu a&quot;).click(function(d){var b=jQuery(d.currentTarget).parent().parent().find(&quot;#custom-menu-item-url&quot;).val();var c=jQuery(d.currentTarget).parent().parent().find(&quot;#custom-menu-item-name&quot;).val();wp_add_item_to_menu(0,&quot;&quot;,&quot;custom&quot;,navMenuL10n.custom,0,c,b,&quot;&quot;,&quot;&quot;,&quot;_self&quot;,&quot;&quot;,&quot;&quot;)})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -152,7 +152,7 @@
</span><span class="cx">                         var item_xfn = jQuery(this).parent().siblings('.menu-item-xfn').val();
</span><span class="cx">                 } else {
</span><span class="cx">                         var item_attr_title = '';
</span><del>-                        var item_target = '_none';
</del><ins>+                        var item_target = '_self';
</ins><span class="cx">                         var item_classes = '';
</span><span class="cx">                         var item_xfn = '';
</span><span class="cx">                 };
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu-dynamic-functions.js (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-dynamic-functions.js        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-admin/js/nav-menu-dynamic-functions.js        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -1 +1 @@
</span><del>-function wp_nav_menu_autocomplete(a){jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).autocomplete(jQuery(&quot;#add-&quot;+a+&quot; .autocomplete&quot;).val().split(&quot;|&quot;));jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).result(function(b,d,c){jQuery(&quot;#add-&quot;+a+&quot; .list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .list-wrap li:contains('&quot;+d+&quot;')&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .show-all&quot;).hide();jQuery(&quot;#add-&quot;+a+&quot; .hide-all&quot;).show()})}function wp_edit_menu_item(a){var f=jQuery(&quot;#menu-item-type&quot;+a).val();var b=jQuery(&quot;#menu-item-title&quot;+a).val();var g=jQuery(&quot;#menu-item-url&quot;+a).val();var c=jQuery(&quot;#menu-item-attr-title&quot;+a).val();var d=jQuery(&quot;#menu-item-target&quot;+a).val();var h=jQuery(&quot;#menu-item-description&quot;+a).val();var e=jQuery(&quot;#menu-item-classes&quot;+a).val();var i=jQuery(&quot;#menu-item-xfn&quot;+a).val();if(&quot;custom&quot;!=f){jQuery(&quot;#edit-menu-item-url&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}jQuery(&quot;#edit-menu-item-id&quot;).val(a);jQuery(&quot;#edit-menu-item-title&quot;).val(b);jQuery(&quot;#edit-menu-item-url&quot;).val(g);jQuery(&quot;#edit-menu-item-attr-title&quot;).val(c);jQuery(&quot;#edit-menu-item-target&quot;).val(d);jQuery(&quot;#edit-menu-item-target option[value='&quot;+d+&quot;']&quot;).attr(&quot;selected&quot;,&quot;selected&quot;);jQuery(&quot;#edit-menu-item-description&quot;).val(h);jQuery(&quot;#edit-menu-item-classes&quot;).val(e);jQuery(&quot;#edit-menu-item-xfn&quot;).val(i);jQuery(&quot;#edit-menu-item-title&quot;).focus()}function wp_update_menu_item(){var h=jQuery(&quot;#edit-menu-item-id&quot;).val();var f=jQuery(&quot;#edit-menu-item-title&quot;).val();var b=jQuery(&quot;#edit-menu-item-url&quot;).val();var g=jQuery(&quot;#edit-menu-item-attr-title&quot;).val();var d=jQuery(&quot;#edit-menu-item-target&quot;).val();var c=jQuery(&quot;#edit-menu-item-description&quot;).val();var a=jQuery(&quot;#edit-menu-item-classes&quot;).val();var e=jQuery(&quot;#edit-menu-item-xfn&quot;).val();jQuery(&quot;.menu #menu-item&quot;+h).find(&quot;span.item-title&quot;).html(f);jQuery(&quot;.menu #menu-item-title&quot;+h).val(f);jQuery(&quot;.menu #menu-item-url&quot;+h).val(b);jQuery(&quot;.menu #menu-item-attr-title&quot;+h).val(g);jQuery(&quot;.menu #menu-item-target&quot;+h).val(d);jQuery(&quot;.menu #menu-item-description&quot;+h).val(c);jQuery(&quot;.menu #menu-item-classes&quot;+h).val(a);jQuery(&quot;.menu #menu-item-xfn&quot;+h).val(e);jQuery(&quot;.menu #menu-item&quot;+h+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}function wp_remove_menu_item(b){var a=document.getElementById(&quot;menu-item&quot;+b);if(a){jQuery(a).find(&quot;dt&quot;).each(function(){jQuery(this).animate({backgroundColor:&quot;#FF3333&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).parent().parent().remove()}})})}}function wp_add_item_to_menu(a,k,f,n,l,b,m,h,e,d,c,i){var j=wp_get_unique_menu_id();var g=wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i);jQuery(&quot;.menu&quot;).append('&lt;li id=&quot;menu-item'+j+'&quot; value=&quot;'+j+'&quot;&gt;&lt;div class=&quot;dropzone ui-droppable&quot;&gt;&lt;/div&gt;&lt;dl class=&quot;ui-droppable&quot;&gt;&lt;dt&gt;&lt;span class=&quot;item-title&quot;&gt;'+b+'&lt;/span&gt;&lt;span class=&quot;item-controls&quot;&gt;&lt;span class=&quot;item-type&quot;&gt;'+n+'&lt;/span&gt;&lt;a class=&quot;item-edit thickbox&quot; id=&quot;edit'+j+'&quot; value=&quot;'+j+'&quot; onClick=&quot;wp_edit_menu_item('+j+')&quot; title=&quot;'+navMenuL10n.thickbox+'&quot; href=&quot;#TB_inline?height=540&amp;width=300&amp;inlineId=menu-item-settings&quot;&gt;'+navMenuL10n.edit+'&lt;/a&gt; | &lt;a class=&quot;item-delete&quot; id=&quot;delete'+j+'&quot; value=&quot;'+j+'&quot;&gt;Delete&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;/dl&gt;'+g+&quot;&lt;/li&gt;&quot;);jQuery(&quot;.menu #menu-item&quot;+j+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}});wp_drag_and_drop();tb_init(&quot;a.thickbox, area.thickbox, input.thickbox&quot;)}function wp_add_checked_items_to_menu(b){var a=jQuery(b).siblings(&quot;.list-wrap&quot;).find(&quot;:checked&quot;);if(0==a.length){return false}jQuery(a).each(function(){var h=jQuery(this).parent().siblings(&quot;.menu-item-type&quot;).val();if(&quot;custom&quot;==h){var e=jQuery(this).parent().siblings(&quot;.menu-item-attr-title&quot;).val();var f=jQuery(this).parent().siblings(&quot;.menu-item-target&quot;).val();var g=jQuery(this).parent().siblings(&quot;.menu-item-classes&quot;).val();var j=jQuery(this).parent().siblings(&quot;.menu-item-xfn&quot;).val()}else{var e=&quot;&quot;;var f=&quot;_none&quot;;var g=&quot;&quot;;var j=&quot;&quot;}var c=jQuery(this).parent().siblings(&quot;.menu-item-db-id&quot;).val();var k=jQuery(this).parent().siblings(&quot;.menu-item-object-id&quot;).val();var n=jQuery(this).parent().siblings(&quot;.menu-item-append&quot;).val();var l=jQuery(this).parent().siblings(&quot;.menu-item-parent-id&quot;).val();var d=jQuery(this).parent().siblings(&quot;.menu-item-title&quot;).val();var m=jQuery(this).parent().siblings(&quot;.menu-item-url&quot;).val();var i=jQuery(this).parent().siblings(&quot;.menu-item-description&quot;).val();if(undefined==i){i=&quot;&quot;}wp_add_item_to_menu(c,k,h,n,l,d,m,i,e,f,g,j);jQuery(this).attr(&quot;checked&quot;,false)})}function wp_drag_and_drop(){jQuery(&quot;.menu li&quot;).each(function(){if(!jQuery(this).children(&quot;.dropzone&quot;).attr(&quot;class&quot;)){jQuery(this).prepend('&lt;div class=&quot;dropzone&quot;&gt;&lt;/div&gt;')}});jQuery(&quot;.menu li&quot;).draggable({handle:&quot; &gt; dl&quot;,opacity:0.8,addClasses:false,helper:&quot;clone&quot;,zIndex:100});jQuery(&quot;.menu li dl, .menu li .dropzone&quot;).droppable({accept:&quot;.menu li&quot;,tolerance:&quot;pointer&quot;,drop:function(f,d){var a=jQuery(this).parent();var g=!jQuery(this).hasClass(&quot;dropzone&quot;);if(g&amp;&amp;a.children(&quot;ul&quot;).length==0){a.append('&lt;ul class=&quot;sub-menu&quot; /&gt;')}if(g){a.children(&quot;ul&quot;).append(d.draggable)}else{a.before(d.draggable)}a.find(&quot;dl,.dropzone&quot;).css({backgroundColor:&quot;&quot;,borderColor:&quot;&quot;});var c=d.draggable.attr(&quot;value&quot;);var b=a.attr(&quot;value&quot;);a.find(&quot;#menu-&quot;+c).find(&quot;#parent&quot;+c).val(b);jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;)},over:function(){if(jQuery(this).attr(&quot;class&quot;)==&quot;dropzone ui-droppable&quot;){jQuery(this).parent().find(&quot;div:first&quot;).css(&quot;background&quot;,&quot;none&quot;).css(&quot;height&quot;,&quot;50px&quot;)}else{if(jQuery(this).attr(&quot;class&quot;)==&quot;ui-droppable&quot;){jQuery(this).parent().find(&quot;dt:first&quot;).css(&quot;background&quot;,&quot;#d8d8d8&quot;)}else{}}var a=jQuery(this).parent().attr(&quot;id&quot;)},out:function(){jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;);jQuery(this).filter(&quot;.dropzone&quot;).css({borderColor:&quot;&quot;})}})}function wp_update_post_data(){var a=0;jQuery(&quot;.menu li&quot;).each(function(c){c=c+1;var b=jQuery(this).attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;value&quot;,c);jQuery(this).attr(&quot;id&quot;,&quot;menu-item&quot;+c);jQuery(this).attr(&quot;value&quot;,c);jQuery(this).find(&quot;#menu-item-db-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-db-id&quot;+c);jQuery(this).find(&quot;#menu-item-object-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-object-id&quot;+c);jQuery(this).find(&quot;#menu-item-append&quot;+b).attr(&quot;id&quot;,&quot;menu-item-append&quot;+c);jQuery(this).find(&quot;#menu-item-type&quot;+b).attr(&quot;id&quot;,&quot;menu-item-type&quot;+c);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;id&quot;,&quot;menu-item-position&quot;+c);var d=jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).parent().parent().parent().attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-parent-id&quot;+c);if(d){}else{d=0}jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;value&quot;,d);jQuery(this).find(&quot;#menu-item-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-title&quot;+c);jQuery(this).find(&quot;#menu-item-url&quot;+b).attr(&quot;id&quot;,&quot;menu-item-url&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-classes&quot;+b).attr(&quot;id&quot;,&quot;menu-item-classes&quot;+c);jQuery(this).find(&quot;#menu-item-xfn&quot;+b).attr(&quot;id&quot;,&quot;menu-item-xfn&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-attr-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-attr-title&quot;+c);jQuery(this).find(&quot;#menu-item-target&quot;+b).attr(&quot;id&quot;,&quot;menu-item-target&quot;+c);jQuery(&quot;#li-count&quot;).attr(&quot;value&quot;,c)})}function wp_get_unique_menu_id(){var d=jQuery(&quot;.menu li&quot;).length+1;var e=d;var a=0;try{var f=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}while(a==0){e=e+1;try{var b=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}}return e}function wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i){var g=&quot;&quot;;g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-db-id[]&quot; id=&quot;menu-item-db-id'+j+'&quot; value=&quot;'+a+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-object-id[]&quot; id=&quot;menu-item-object-id'+j+'&quot; value=&quot;'+k+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-type[]&quot; id=&quot;menu-item-type'+j+'&quot; value=&quot;'+f+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-append[]&quot; id=&quot;menu-item-append'+j+'&quot; value=&quot;'+n+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-parent-id[]&quot; id=&quot;menu-item-parent-id'+j+'&quot; value=&quot;'+l+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-position[]&quot; id=&quot;menu-item-position'+j+'&quot; value=&quot;'+j+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-title[]&quot; id=&quot;menu-item-title'+j+'&quot; value=&quot;'+b+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-attr-title[]&quot; id=&quot;menu-item-attr-title'+j+'&quot; value=&quot;'+e+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-url[]&quot; id=&quot;menu-item-url'+j+'&quot; value=&quot;'+m+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-target[]&quot; id=&quot;menu-item-target'+j+'&quot; value=&quot;'+d+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-description[]&quot; id=&quot;menu-item-description'+j+'&quot; value=&quot;'+h+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-classes[]&quot; id=&quot;menu-item-classes'+j+'&quot; value=&quot;'+c+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-xfn[]&quot; id=&quot;menu-item-xfn'+j+'&quot; value=&quot;'+i+'&quot; /&gt;';return g};
</del><span class="cx">\ No newline at end of file
</span><ins>+function wp_nav_menu_autocomplete(a){jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).autocomplete(jQuery(&quot;#add-&quot;+a+&quot; .autocomplete&quot;).val().split(&quot;|&quot;));jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).result(function(b,d,c){jQuery(&quot;#add-&quot;+a+&quot; .list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .list-wrap li:contains('&quot;+d+&quot;')&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .show-all&quot;).hide();jQuery(&quot;#add-&quot;+a+&quot; .hide-all&quot;).show()})}function wp_edit_menu_item(a){var f=jQuery(&quot;#menu-item-type&quot;+a).val();var b=jQuery(&quot;#menu-item-title&quot;+a).val();var g=jQuery(&quot;#menu-item-url&quot;+a).val();var c=jQuery(&quot;#menu-item-attr-title&quot;+a).val();var d=jQuery(&quot;#menu-item-target&quot;+a).val();var h=jQuery(&quot;#menu-item-description&quot;+a).val();var e=jQuery(&quot;#menu-item-classes&quot;+a).val();var i=jQuery(&quot;#menu-item-xfn&quot;+a).val();if(&quot;custom&quot;!=f){jQuery(&quot;#edit-menu-item-url&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}jQuery(&quot;#edit-menu-item-id&quot;).val(a);jQuery(&quot;#edit-menu-item-title&quot;).val(b);jQuery(&quot;#edit-menu-item-url&quot;).val(g);jQuery(&quot;#edit-menu-item-attr-title&quot;).val(c);jQuery(&quot;#edit-menu-item-target&quot;).val(d);jQuery(&quot;#edit-menu-item-target option[value='&quot;+d+&quot;']&quot;).attr(&quot;selected&quot;,&quot;selected&quot;);jQuery(&quot;#edit-menu-item-description&quot;).val(h);jQuery(&quot;#edit-menu-item-classes&quot;).val(e);jQuery(&quot;#edit-menu-item-xfn&quot;).val(i);jQuery(&quot;#edit-menu-item-title&quot;).focus()}function wp_update_menu_item(){var h=jQuery(&quot;#edit-menu-item-id&quot;).val();var f=jQuery(&quot;#edit-menu-item-title&quot;).val();var b=jQuery(&quot;#edit-menu-item-url&quot;).val();var g=jQuery(&quot;#edit-menu-item-attr-title&quot;).val();var d=jQuery(&quot;#edit-menu-item-target&quot;).val();var c=jQuery(&quot;#edit-menu-item-description&quot;).val();var a=jQuery(&quot;#edit-menu-item-classes&quot;).val();var e=jQuery(&quot;#edit-menu-item-xfn&quot;).val();jQuery(&quot;.menu #menu-item&quot;+h).find(&quot;span.item-title&quot;).html(f);jQuery(&quot;.menu #menu-item-title&quot;+h).val(f);jQuery(&quot;.menu #menu-item-url&quot;+h).val(b);jQuery(&quot;.menu #menu-item-attr-title&quot;+h).val(g);jQuery(&quot;.menu #menu-item-target&quot;+h).val(d);jQuery(&quot;.menu #menu-item-description&quot;+h).val(c);jQuery(&quot;.menu #menu-item-classes&quot;+h).val(a);jQuery(&quot;.menu #menu-item-xfn&quot;+h).val(e);jQuery(&quot;.menu #menu-item&quot;+h+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}function wp_remove_menu_item(b){var a=document.getElementById(&quot;menu-item&quot;+b);if(a){jQuery(a).find(&quot;dt&quot;).each(function(){jQuery(this).animate({backgroundColor:&quot;#FF3333&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).parent().parent().remove()}})})}}function wp_add_item_to_menu(a,k,f,n,l,b,m,h,e,d,c,i){var j=wp_get_unique_menu_id();var g=wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i);jQuery(&quot;.menu&quot;).append('&lt;li id=&quot;menu-item'+j+'&quot; value=&quot;'+j+'&quot;&gt;&lt;div class=&quot;dropzone ui-droppable&quot;&gt;&lt;/div&gt;&lt;dl class=&quot;ui-droppable&quot;&gt;&lt;dt&gt;&lt;span class=&quot;item-title&quot;&gt;'+b+'&lt;/span&gt;&lt;span class=&quot;item-controls&quot;&gt;&lt;span class=&quot;item-type&quot;&gt;'+n+'&lt;/span&gt;&lt;a class=&quot;item-edit thickbox&quot; id=&quot;edit'+j+'&quot; value=&quot;'+j+'&quot; onClick=&quot;wp_edit_menu_item('+j+')&quot; title=&quot;'+navMenuL10n.thickbox+'&quot; href=&quot;#TB_inline?height=540&amp;width=300&amp;inlineId=menu-item-settings&quot;&gt;'+navMenuL10n.edit+'&lt;/a&gt; | &lt;a class=&quot;item-delete&quot; id=&quot;delete'+j+'&quot; value=&quot;'+j+'&quot;&gt;Delete&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;/dl&gt;'+g+&quot;&lt;/li&gt;&quot;);jQuery(&quot;.menu #menu-item&quot;+j+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}});wp_drag_and_drop();tb_init(&quot;a.thickbox, area.thickbox, input.thickbox&quot;)}function wp_add_checked_items_to_menu(b){var a=jQuery(b).siblings(&quot;.list-wrap&quot;).find(&quot;:checked&quot;);if(0==a.length){return false}jQuery(a).each(function(){var h=jQuery(this).parent().siblings(&quot;.menu-item-type&quot;).val();if(&quot;custom&quot;==h){var e=jQuery(this).parent().siblings(&quot;.menu-item-attr-title&quot;).val();var f=jQuery(this).parent().siblings(&quot;.menu-item-target&quot;).val();var g=jQuery(this).parent().siblings(&quot;.menu-item-classes&quot;).val();var j=jQuery(this).parent().siblings(&quot;.menu-item-xfn&quot;).val()}else{var e=&quot;&quot;;var f=&quot;_self&quot;;var g=&quot;&quot;;var j=&quot;&quot;}var c=jQuery(this).parent().siblings(&quot;.menu-item-db-id&quot;).val();var k=jQuery(this).parent().siblings(&quot;.menu-item-object-id&quot;).val();var n=jQuery(this).parent().siblings(&quot;.menu-item-append&quot;).val();var l=jQuery(this).parent().siblings(&quot;.menu-item-parent-id&quot;).val();var d=jQuery(this).parent().siblings(&quot;.menu-item-title&quot;).val();var m=jQuery(this).parent().siblings(&quot;.menu-item-url&quot;).val();var i=jQuery(this).parent().siblings(&quot;.menu-item-description&quot;).val();if(undefined==i){i=&quot;&quot;}wp_add_item_to_menu(c,k,h,n,l,d,m,i,e,f,g,j);jQuery(this).attr(&quot;checked&quot;,false)})}function wp_drag_and_drop(){jQuery(&quot;.menu li&quot;).each(function(){if(!jQuery(this).children(&quot;.dropzone&quot;).attr(&quot;class&quot;)){jQuery(this).prepend('&lt;div class=&quot;dropzone&quot;&gt;&lt;/div&gt;')}});jQuery(&quot;.menu li&quot;).draggable({handle:&quot; &gt; dl&quot;,opacity:0.8,addClasses:false,helper:&quot;clone&quot;,zIndex:100});jQuery(&quot;.menu li dl, .menu li .dropzone&quot;).droppable({accept:&quot;.menu li&quot;,tolerance:&quot;pointer&quot;,drop:function(f,d){var a=jQuery(this).parent();var g=!jQuery(this).hasClass(&quot;dropzone&quot;);if(g&amp;&amp;a.children(&quot;ul&quot;).length==0){a.append('&lt;ul class=&quot;sub-menu&quot; /&gt;')}if(g){a.children(&quot;ul&quot;).append(d.draggable)}else{a.before(d.draggable)}a.find(&quot;dl,.dropzone&quot;).css({backgroundColor:&quot;&quot;,borderColor:&quot;&quot;});var c=d.draggable.attr(&quot;value&quot;);var b=a.attr(&quot;value&quot;);a.find(&quot;#menu-&quot;+c).find(&quot;#parent&quot;+c).val(b);jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;)},over:function(){if(jQuery(this).attr(&quot;class&quot;)==&quot;dropzone ui-droppable&quot;){jQuery(this).parent().find(&quot;div:first&quot;).css(&quot;background&quot;,&quot;none&quot;).css(&quot;height&quot;,&quot;50px&quot;)}else{if(jQuery(this).attr(&quot;class&quot;)==&quot;ui-droppable&quot;){jQuery(this).parent().find(&quot;dt:first&quot;).css(&quot;background&quot;,&quot;#d8d8d8&quot;)}else{}}var a=jQuery(this).parent().attr(&quot;id&quot;)},out:function(){jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;);jQuery(this).filter(&quot;.dropzone&quot;).css({borderColor:&quot;&quot;})}})}function wp_update_post_data(){var a=0;jQuery(&quot;.menu li&quot;).each(function(c){c=c+1;var b=jQuery(this).attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;value&quot;,c);jQuery(this).attr(&quot;id&quot;,&quot;menu-item&quot;+c);jQuery(this).attr(&quot;value&quot;,c);jQuery(this).find(&quot;#menu-item-db-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-db-id&quot;+c);jQuery(this).find(&quot;#menu-item-object-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-object-id&quot;+c);jQuery(this).find(&quot;#menu-item-append&quot;+b).attr(&quot;id&quot;,&quot;menu-item-append&quot;+c);jQuery(this).find(&quot;#menu-item-type&quot;+b).attr(&quot;id&quot;,&quot;menu-item-type&quot;+c);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;id&quot;,&quot;menu-item-position&quot;+c);var d=jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).parent().parent().parent().attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-parent-id&quot;+c);if(d){}else{d=0}jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;value&quot;,d);jQuery(this).find(&quot;#menu-item-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-title&quot;+c);jQuery(this).find(&quot;#menu-item-url&quot;+b).attr(&quot;id&quot;,&quot;menu-item-url&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-classes&quot;+b).attr(&quot;id&quot;,&quot;menu-item-classes&quot;+c);jQuery(this).find(&quot;#menu-item-xfn&quot;+b).attr(&quot;id&quot;,&quot;menu-item-xfn&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-attr-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-attr-title&quot;+c);jQuery(this).find(&quot;#menu-item-target&quot;+b).attr(&quot;id&quot;,&quot;menu-item-target&quot;+c);jQuery(&quot;#li-count&quot;).attr(&quot;value&quot;,c)})}function wp_get_unique_menu_id(){var d=jQuery(&quot;.menu li&quot;).length+1;var e=d;var a=0;try{var f=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}while(a==0){e=e+1;try{var b=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}}return e}function wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i){var g=&quot;&quot;;g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-db-id[]&quot; id=&quot;menu-item-db-id'+j+'&quot; value=&quot;'+a+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-object-id[]&quot; id=&quot;menu-item-object-id'+j+'&quot; value=&quot;'+k+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-type[]&quot; id=&quot;menu-item-type'+j+'&quot; value=&quot;'+f+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-append[]&quot; id=&quot;menu-item-append'+j+'&quot; value=&quot;'+n+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-parent-id[]&quot; id=&quot;menu-item-parent-id'+j+'&quot; value=&quot;'+l+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-position[]&quot; id=&quot;menu-item-position'+j+'&quot; value=&quot;'+j+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-title[]&quot; id=&quot;menu-item-title'+j+'&quot; value=&quot;'+b+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-attr-title[]&quot; id=&quot;menu-item-attr-title'+j+'&quot; value=&quot;'+e+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-url[]&quot; id=&quot;menu-item-url'+j+'&quot; value=&quot;'+m+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-target[]&quot; id=&quot;menu-item-target'+j+'&quot; value=&quot;'+d+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-description[]&quot; id=&quot;menu-item-description'+j+'&quot; value=&quot;'+h+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-classes[]&quot; id=&quot;menu-item-classes'+j+'&quot; value=&quot;'+c+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-xfn[]&quot; id=&quot;menu-item-xfn'+j+'&quot; value=&quot;'+i+'&quot; /&gt;';return g};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminnavmenusphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/nav-menus.php (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/nav-menus.php        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-admin/nav-menus.php        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -107,7 +107,6 @@
</span><span class="cx">                         
</span><span class="cx">                         // Loop through all POST variables
</span><span class="cx">                         for ( $k = 0; $k &lt; $update_nav_items; $k++ ) {
</span><del>-                                
</del><span class="cx">                                 $menu_item_db_id                 = isset( $_POST['menu-item-db-id'][$k] )                ? $_POST['menu-item-db-id'][$k]         : 0;
</span><span class="cx">                                 $menu_item_object_id         = isset( $_POST['menu-item-object-id'][$k] )         ? $_POST['menu-item-object-id'][$k] : 0;
</span><span class="cx">                                 $menu_item_parent_id         = isset( $_POST['menu-item-parent-id'][$k] )         ? $_POST['menu-item-parent-id'][$k] : 0;
</span><span class="lines">@@ -143,12 +142,14 @@
</span><span class="cx">                                 }
</span><span class="cx">                                 $parent_menu_ids[$k] = $menu_item_db_id;
</span><span class="cx">                                 
</span><ins>+                                // @todo sanitize type append and ID.
</ins><span class="cx">                                 update_post_meta( $menu_item_db_id, 'menu_item_type', $menu_item_type );
</span><span class="cx">                                 update_post_meta( $menu_item_db_id, 'menu_item_append', $menu_item_append );
</span><span class="cx">                                 update_post_meta( $menu_item_db_id, 'menu_item_object_id', $menu_item_object_id );
</span><del>-                                update_post_meta( $menu_item_db_id, 'menu_item_target', esc_attr($menu_item_target) );
-                                update_post_meta( $menu_item_db_id, 'menu_item_classes', esc_attr($menu_item_classes) );
-                                update_post_meta( $menu_item_db_id, 'menu_item_xfn', esc_attr($menu_item_xfn) );
</del><ins>+                                update_post_meta( $menu_item_db_id, 'menu_item_target', sanitize_key($menu_item_target) );
+                                // @todo handle sanitizing multiple classes separated by whitespace.
+                                update_post_meta( $menu_item_db_id, 'menu_item_classes', sanitize_html_class($menu_item_classes) );
+                                update_post_meta( $menu_item_db_id, 'menu_item_xfn', sanitize_html_class($menu_item_xfn) );
</ins><span class="cx">                                 
</span><span class="cx">                                 // @todo: only save custom link urls.
</span><span class="cx">                                 update_post_meta( $menu_item_db_id, 'menu_item_url', esc_url_raw( $menu_item_url ) );
</span><span class="lines">@@ -288,8 +289,8 @@
</span><span class="cx">                 &lt;label for=&quot;edit-menu-item-target&quot;&gt;
</span><span class="cx">                         &lt;?php _e( 'Link Target' ); ?&gt;&lt;br /&gt;
</span><span class="cx">                         &lt;select id=&quot;edit-menu-item-target&quot; class=&quot;widefat&quot; name=&quot;edit-menu-item-target&quot; tabindex=&quot;4&quot;&gt;
</span><del>-                                &lt;option value=&quot;_self&quot;&gt;Same window or tab&lt;/option&gt;
-                                &lt;option value=&quot;_blank&quot;&gt;New window or tab&lt;/option&gt;
</del><ins>+                                &lt;option value=&quot;_self&quot;&gt;&lt;?php _e('Same window or tab'); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;_blank&quot;&gt;&lt;?php _e('New window or tab'); ?&gt;&lt;/option&gt;
</ins><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                 &lt;/label&gt;
</span><span class="cx">         &lt;/p&gt;
</span><span class="lines">@@ -309,7 +310,7 @@
</span><span class="cx">                 &lt;label for=&quot;edit-menu-item-description&quot;&gt;
</span><span class="cx">                         &lt;?php _e( 'Description (optional)' ); ?&gt;&lt;br /&gt;
</span><span class="cx">                         &lt;textarea id=&quot;edit-menu-item-description&quot; class=&quot;widefat&quot; rows=&quot;3&quot; name=&quot;edit-menu-item-description&quot; tabindex=&quot;7&quot; /&gt;&lt;/textarea&gt;
</span><del>-                        &lt;span class=&quot;description&quot;&gt;The description will be displayed in the menu if the current theme supports it.&lt;/span&gt;
</del><ins>+                        &lt;span class=&quot;description&quot;&gt;&lt;?php _e('The description will be displayed in the menu if the current theme supports it.'); ?&gt;&lt;/span&gt;
</ins><span class="cx">                 &lt;/label&gt;
</span><span class="cx">         &lt;/p&gt;
</span><span class="cx">         &lt;p&gt;
</span></span></pre></div>
<a id="trunkwpincludesnavmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/nav-menu.php (13718 => 13719)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/nav-menu.php        2010-03-16 19:19:32 UTC (rev 13718)
+++ trunk/wp-includes/nav-menu.php        2010-03-16 19:20:10 UTC (rev 13719)
</span><span class="lines">@@ -211,7 +211,7 @@
</span><span class="cx"> 
</span><span class="cx">                         $menu_item-&gt;title = $menu_item-&gt;post_title;
</span><span class="cx">                         $menu_item-&gt;url = get_permalink( $menu_item-&gt;ID );
</span><del>-                        $menu_item-&gt;target = '_none';
</del><ins>+                        $menu_item-&gt;target = '_self';
</ins><span class="cx">                         
</span><span class="cx">                         $menu_item-&gt;attr_title = '';
</span><span class="cx">                         $menu_item-&gt;description = strip_tags( $menu_item-&gt;post_content );
</span><span class="lines">@@ -229,7 +229,7 @@
</span><span class="cx"> 
</span><span class="cx">                         $menu_item-&gt;title = $menu_item-&gt;name;
</span><span class="cx">                         $menu_item-&gt;url = get_term_link( $menu_item, $menu_item_object );
</span><del>-                        $menu_item-&gt;target = '_none';
</del><ins>+                        $menu_item-&gt;target = '_self';
</ins><span class="cx">                         $menu_item-&gt;attr_title = '';
</span><span class="cx">                         $menu_item-&gt;description = strip_tags( $menu_item-&gt;description );
</span><span class="cx">                         break;
</span></span></pre>
</div>
</div>

</body>
</html>