<!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>[17255] trunk: Nonce checks for internal linking and list table ajax.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/17255">17255</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2011-01-11 20:03:50 +0000 (Tue, 11 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Nonce checks for internal linking and list table ajax. fixes <a href="http://trac.wordpress.org/ticket/16188">#16188</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminadminajaxphp">trunk/wp-admin/admin-ajax.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablephp">trunk/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunkwpadminincludesinternallinkingphp">trunk/wp-admin/includes/internal-linking.php</a></li>
<li><a href="#trunkwpadminjslisttabledevjs">trunk/wp-admin/js/list-table.dev.js</a></li>
<li><a href="#trunkwpadminjslisttablejs">trunk/wp-admin/js/list-table.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkdevjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.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="trunkwpadminadminajaxphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/admin-ajax.php (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/admin-ajax.php        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-admin/admin-ajax.php        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -52,6 +52,9 @@
</span><span class="cx"> switch ( $action = $_GET['action'] ) :
</span><span class="cx"> case 'fetch-list' :
</span><span class="cx"> 
</span><ins>+        $list_class = $_GET['list_args']['class'];
+        check_ajax_referer( &quot;fetch-list-$list_class&quot;, '_ajax_fetch_list_nonce' );
+
</ins><span class="cx">         $current_screen = (object) $_GET['list_args']['screen'];
</span><span class="cx">         //TODO fix this in a better way see #15336
</span><span class="cx">         $current_screen-&gt;is_network = 'false' === $current_screen-&gt;is_network ? false : true;
</span><span class="lines">@@ -60,7 +63,7 @@
</span><span class="cx">         define( 'WP_NETWORK_ADMIN', $current_screen-&gt;is_network );
</span><span class="cx">         define( 'WP_USER_ADMIN', $current_screen-&gt;is_user );
</span><span class="cx"> 
</span><del>-        $wp_list_table = get_list_table( $_GET['list_args']['class'] );
</del><ins>+        $wp_list_table = get_list_table( $list_class );
</ins><span class="cx">         if ( ! $wp_list_table )
</span><span class="cx">                 die( '0' );
</span><span class="cx"> 
</span><span class="lines">@@ -1089,6 +1092,8 @@
</span><span class="cx"> case 'wp-link-ajax':
</span><span class="cx">         require_once ABSPATH . 'wp-admin/includes/internal-linking.php';
</span><span class="cx"> 
</span><ins>+        check_ajax_referer( 'internal-linking', '_ajax_linking_nonce' );
+
</ins><span class="cx">         $args = array();
</span><span class="cx"> 
</span><span class="cx">         if ( isset( $_POST['search'] ) )
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-list-table.php (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table.php        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-admin/includes/class-wp-list-table.php        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -685,6 +685,8 @@
</span><span class="cx">         function display() {
</span><span class="cx">                 extract( $this-&gt;_args );
</span><span class="cx"> 
</span><ins>+                wp_nonce_field( &quot;fetch-list-&quot; . get_class( $this ), '_ajax_fetch_list_nonce' );
+
</ins><span class="cx">                 $this-&gt;display_tablenav( 'top' );
</span><span class="cx"> 
</span><span class="cx"> ?&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesinternallinkingphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/internal-linking.php (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/internal-linking.php        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-admin/includes/internal-linking.php        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -71,6 +71,7 @@
</span><span class="cx"> function wp_link_dialog() {
</span><span class="cx"> ?&gt;
</span><span class="cx"> &lt;form id=&quot;wp-link&quot; tabindex=&quot;-1&quot;&gt;
</span><ins>+&lt;?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?&gt;
</ins><span class="cx"> &lt;div id=&quot;link-selector&quot;&gt;
</span><span class="cx">         &lt;div id=&quot;link-options&quot;&gt;
</span><span class="cx">                 &lt;p class=&quot;howto&quot;&gt;&lt;?php _e( 'Enter the destination URL' ); ?&gt;&lt;/p&gt;
</span></span></pre></div>
<a id="trunkwpadminjslisttabledevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/list-table.dev.js (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.dev.js        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-admin/js/list-table.dev.js        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -104,7 +104,8 @@
</span><span class="cx">         fetch_list: function(data, success_callback, error_callback) {
</span><span class="cx">                 data = $.extend(data, {
</span><span class="cx">                         'action': 'fetch-list',
</span><del>-                        'list_args': list_args
</del><ins>+                        'list_args': list_args,
+                        '_ajax_fetch_list_nonce': $('#_ajax_fetch_list_nonce').val()
</ins><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">                 $.ajax({
</span></span></pre></div>
<a id="trunkwpadminjslisttablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/list-table.js (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.js        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-admin/js/list-table.js        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function($){window.listTable={init:function(){this.loading=false;this.reset(&quot;.tablenav, .search-box, .wp-list-table&quot;);if(&quot;&quot;==$.query.GET(&quot;paged&quot;)){$.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=$(&quot;#the-list, #the-comment-list&quot;)},reset:function(context){context=$(context);$(&quot;input&quot;,context).each(function(){this.value=this.defaultValue;this.checked=this.defaultChecked});$(&quot;select&quot;,context).each(function(){var options=$(&quot;option&quot;,this),anySelected=false;options.each(function(){this.selected=this.defaultSelected;anySelected=anySelected||this.defaultSelected});if(!this.multiple&amp;&amp;!anySelected){options[0].selected=true}});$(&quot;textarea&quot;,context).each(function(){this.value=this.defaultValue})},set_total_pages:function(num){var last_page_url=$(&quot;.last-page&quot;).attr(&quot;href&quot;);if(last_page_url){this.total_pages=num||$.query.load(last_page_url).get(&quot;paged&quot;)}},get_total_pages:function(){return this.total_pages},htmlencode:function(value){return $(&quot;&lt;div/&gt;&quot;).text(value).html()},update_rows:function(args,reset_paging,callback){if(this.loading){return false}var different=false,data={};$.each(args,function(key,val){if(val!=$.query.GET(key)){$.query.SET(key,val);different=true}});if(!different){return false}this.start_loading();if(reset_paging){$.query.SET(&quot;paged&quot;,1)}$.each($.query.get(),function(key,value){if(true===value){data[key]=&quot;&quot;}else{data[key]=value}});this._callback=callback;this.fetch_list(data,$.proxy(this,&quot;handle_success&quot;),$.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(data,success_callback,error_callback){data=$.extend(data,{action:&quot;fetch-list&quot;,list_args:list_args});$.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:data,success:success_callback,error:error_callback})},handle_success:function(response){if(&quot;object&quot;!=typeof response){this.handle_error()}else{var tablenav=$(&quot;.tablenav-pages&quot;);this.stop_loading();$(&quot;div.updated, div.error&quot;).not(&quot;.persistent, .inline&quot;).remove();this.$tbody.html(response.rows);$(&quot;.displaying-num&quot;).html(response.total_items_i18n);$(&quot;.total-pages&quot;).html(response.total_pages_i18n);this.set_total_pages(response.total_pages);if(response.total_pages&gt;1){tablenav.removeClass(&quot;one-page&quot;)}$(&quot;.current-page&quot;).val($.query.GET(&quot;paged&quot;));tablenav.find(&quot;.first-page, .prev-page&quot;).toggleClass(&quot;disabled&quot;,1==$.query.GET(&quot;paged&quot;));tablenav.find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,response.total_pages==$.query.GET(&quot;paged&quot;));$(&quot;th.column-cb :input&quot;).attr(&quot;checked&quot;,false);if(history.replaceState){history.replaceState({},&quot;&quot;,location.pathname+$.query)}if(this._callback){this._callback()}}},handle_error:function(){this.stop_loading();$(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+listTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},start_loading:function(){this.loading=true;$(&quot;.error.ajax&quot;).remove();$(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)},stop_loading:function(){this.loading=false;$(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};listTable.init();function change_page(paged,$el){if(paged&lt;1){paged=1}if(paged&gt;listTable.get_total_pages()){paged=listTable.get_total_pages()}$(listTable).trigger(&quot;beforeChangePage&quot;);listTable.update_rows({paged:paged},false,function(){if($el.parents(&quot;.tablenav.bottom&quot;).length){scrollTo(0,0)}$(listTable).trigger(&quot;changePage&quot;)})}$(&quot;.tablenav-pages a&quot;).click(function(){var $el=$(this),paged=$.query.GET(&quot;paged&quot;);switch($el.attr(&quot;class&quot;)){case&quot;first-page&quot;:paged=1;break;case&quot;prev-page&quot;:paged-=1;break;case&quot;next-page&quot;:paged+=1;break;case&quot;last-page&quot;:paged=listTable.get_total_pages();break}change_page(paged,$el);return false});$(&quot;.current-page&quot;).keypress(function(e){if(13!=e.keyCode){return}var $el=$(this);change_page(parseInt($el.val())||1,$el);return false});$(&quot;th.sortable a, th.sorted a&quot;).click(function(){function get_initial_order($el){return $.query.load($el.find(&quot;a&quot;).attr(&quot;href&quot;)).get(&quot;order&quot;)}var $link=$(this),$th=$link.parent(&quot;th&quot;),thIndex=$th.index(),orderby=$.query.load($link.attr(&quot;href&quot;)).get(&quot;orderby&quot;),order;$th=$th.closest(&quot;table&quot;).find(&quot;thead th:eq(&quot;+thIndex+&quot;), tfoot th:eq(&quot;+thIndex+&quot;)&quot;);if(orderby==$.query.get(&quot;orderby&quot;)){order=(&quot;asc&quot;==$.query.get(&quot;order&quot;))?&quot;desc&quot;:&quot;asc&quot;}else{order=get_initial_order($th);var $old_th=$(&quot;th.sorted&quot;);if($old_th.length){$old_th.removeClass(&quot;sorted&quot;).addClass(&quot;sortable&quot;);$old_th.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(&quot;asc&quot;==get_initial_order($old_th)?&quot;desc&quot;:&quot;asc&quot;)}$th.removeClass(&quot;sortable&quot;).addClass(&quot;sorted&quot;)}$th.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(order);listTable.update_rows({orderby:orderby,order:order},true);return false});function change_search(ev){if(&quot;keypress&quot;==ev.type&amp;&amp;13!=ev.keyCode){return}ev.preventDefault();ev.stopImmediatePropagation();var data=$(this).parent(&quot;.search-box&quot;).find(&quot;:input&quot;).serializeObject();listTable.update_rows(data,true,function(){if($(&quot;h2.nav-tab-wrapper&quot;).length){return}if(&quot;site-users-network&quot;==pagenow||&quot;site-themes-network&quot;==pagenow){$(&quot;h4.search-text&quot;).remove();if(data.s){$(&quot;ul.subsubsub&quot;).after($('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(data.s))))}}else{$(&quot;h2 .subtitle&quot;).remove();if(data.s){$(&quot;h2&quot;).append($('&lt;span class=&quot;subtitle&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(data.s))))}}})}$(&quot;.search-box :submit&quot;).click(change_search);$(&quot;.search-box :text&quot;).keypress(change_search);$(&quot;#post-query-submit&quot;).click(function(){var args={};$(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var $el=$(this);args[$el.attr(&quot;name&quot;)]=$el.val()});listTable.update_rows(args,true);return false});$(&quot;.view-switch a&quot;).click(function(){var $this=$(this);listTable.update_rows({mode:$.query.load($this.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){$(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);$this.addClass(&quot;current&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){window.listTable={init:function(){this.loading=false;this.reset(&quot;.tablenav, .search-box, .wp-list-table&quot;);if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;)},reset:function(d){d=a(d);a(&quot;input&quot;,d).each(function(){this.value=this.defaultValue;this.checked=this.defaultChecked});a(&quot;select&quot;,d).each(function(){var e=a(&quot;option&quot;,this),f=false;e.each(function(){this.selected=this.defaultSelected;f=f||this.defaultSelected});if(!this.multiple&amp;&amp;!f){e[0].selected=true}});a(&quot;textarea&quot;,d).each(function(){this.value=this.defaultValue})},set_total_pages:function(e){var d=a(&quot;.last-page&quot;).attr(&quot;href&quot;);if(d){this.total_pages=e||a.query.load(d).get(&quot;paged&quot;)}},get_total_pages:function(){return this.total_pages},htmlencode:function(d){return a(&quot;&lt;div/&gt;&quot;).text(d).html()},update_rows:function(e,d,h){if(this.loading){return false}var g=false,f={};a.each(e,function(i,j){if(j!=a.query.GET(i)){a.query.SET(i,j);g=true}});if(!g){return false}this.start_loading();if(d){a.query.SET(&quot;paged&quot;,1)}a.each(a.query.get(),function(i,j){if(true===j){f[i]=&quot;&quot;}else{f[i]=j}});this._callback=h;this.fetch_list(f,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(e,f,d){e=a.extend(e,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:e,success:f,error:d})},handle_success:function(d){if(&quot;object&quot;!=typeof d){this.handle_error()}else{var e=a(&quot;.tablenav-pages&quot;);this.stop_loading();a(&quot;div.updated, div.error&quot;).not(&quot;.persistent, .inline&quot;).remove();this.$tbody.html(d.rows);a(&quot;.displaying-num&quot;).html(d.total_items_i18n);a(&quot;.total-pages&quot;).html(d.total_pages_i18n);this.set_total_pages(d.total_pages);if(d.total_pages&gt;1){e.removeClass(&quot;one-page&quot;)}a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));e.find(&quot;.first-page, .prev-page&quot;).toggleClass(&quot;disabled&quot;,1==a.query.GET(&quot;paged&quot;));e.find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,d.total_pages==a.query.GET(&quot;paged&quot;));a(&quot;th.column-cb :input&quot;).attr(&quot;checked&quot;,false);if(history.replaceState){history.replaceState({},&quot;&quot;,location.pathname+a.query)}if(this._callback){this._callback()}}},handle_error:function(){this.stop_loading();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+listTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},start_loading:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();a(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)},stop_loading:function(){this.loading=false;a(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};listTable.init();function b(e,d){if(e&lt;1){e=1}if(e&gt;listTable.get_total_pages()){e=listTable.get_total_pages()}a(listTable).trigger(&quot;beforeChangePage&quot;);listTable.update_rows({paged:e},false,function(){if(d.parents(&quot;.tablenav.bottom&quot;).length){scrollTo(0,0)}a(listTable).trigger(&quot;changePage&quot;)})}a(&quot;.tablenav-pages a&quot;).click(function(){var e=a(this),d=a.query.GET(&quot;paged&quot;);switch(e.attr(&quot;class&quot;)){case&quot;first-page&quot;:d=1;break;case&quot;prev-page&quot;:d-=1;break;case&quot;next-page&quot;:d+=1;break;case&quot;last-page&quot;:d=listTable.get_total_pages();break}b(d,e);return false});a(&quot;.current-page&quot;).keypress(function(f){if(13!=f.keyCode){return}var d=a(this);b(parseInt(d.val())||1,d);return false});a(&quot;th.sortable a, th.sorted a&quot;).click(function(){function i(k){return a.query.load(k.find(&quot;a&quot;).attr(&quot;href&quot;)).get(&quot;order&quot;)}var f=a(this),h=f.parent(&quot;th&quot;),g=h.index(),j=a.query.load(f.attr(&quot;href&quot;)).get(&quot;orderby&quot;),e;h=h.closest(&quot;table&quot;).find(&quot;thead th:eq(&quot;+g+&quot;), tfoot th:eq(&quot;+g+&quot;)&quot;);if(j==a.query.get(&quot;orderby&quot;)){e=(&quot;asc&quot;==a.query.get(&quot;order&quot;))?&quot;desc&quot;:&quot;asc&quot;}else{e=i(h);var d=a(&quot;th.sorted&quot;);if(d.length){d.removeClass(&quot;sorted&quot;).addClass(&quot;sortable&quot;);d.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(&quot;asc&quot;==i(d)?&quot;desc&quot;:&quot;asc&quot;)}h.removeClass(&quot;sortable&quot;).addClass(&quot;sorted&quot;)}h.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(e);listTable.update_rows({orderby:j,order:e},true);return false});function c(d){if(&quot;keypress&quot;==d.type&amp;&amp;13!=d.keyCode){return}d.preventDefault();d.stopImmediatePropagation();var e=a(this).parent(&quot;.search-box&quot;).find(&quot;:input&quot;).serializeObject();listTable.update_rows(e,true,function(){if(a(&quot;h2.nav-tab-wrapper&quot;).length){return}if(&quot;site-users-network&quot;==pagenow||&quot;site-themes-network&quot;==pagenow){a(&quot;h4.search-text&quot;).remove();if(e.s){a(&quot;ul.subsubsub&quot;).after(a('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}else{a(&quot;h2 .subtitle&quot;).remove();if(e.s){a(&quot;h2&quot;).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}})}a(&quot;.search-box :submit&quot;).click(c);a(&quot;.search-box :text&quot;).keypress(c);a(&quot;#post-query-submit&quot;).click(function(){var d={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);d[e.attr(&quot;name&quot;)]=e.val()});listTable.update_rows(d,true);return false});a(&quot;.view-switch a&quot;).click(function(){var d=a(this);listTable.update_rows({mode:a.query.load(d.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);d.addClass(&quot;current&quot;)});return false})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -433,7 +433,8 @@
</span><span class="cx">                         var self = this,
</span><span class="cx">                                 query = {
</span><span class="cx">                                         action : 'wp-link-ajax',
</span><del>-                                        page : this.page
</del><ins>+                                        page : this.page,
+                                        '_ajax_linking_nonce' : $('#_ajax_linking_nonce').val()
</ins><span class="cx">                                 };
</span><span class="cx"> 
</span><span class="cx">                         if ( this.search )
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.cancel);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpdialogrefresh&quot;,wpLink.refresh)},refresh:function(){var g;d=tinyMCEPopup.editor;e.search.refresh();e.recent.refresh();tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.attr(&quot;checked&quot;,&quot;checked&quot;)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues();b.submit.val(wpLinkL10n.save)}tinyMCEPopup.storeSelection();b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}},cancel:function(){tinyMCEPopup.close()},update:function(){var h=tinyMCEPopup.editor,i={href:b.url.val(),title:b.title.val(),target:b.openInNewTab.attr(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;},j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-permalink&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click&quot;){b.url.focus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui.keyCode;switch(h.which){case g.ESCAPE:wpLink.cancel();break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault()},delayedCallback:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({top:n&lt;o?o-n:l},200)}});h.preventDefault()}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this),j)})};f.extend(a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(){if(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li&quot;):f(&quot;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(h,function(){g=j?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span class=&quot;item-title&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page};if(this.search){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:&quot;&quot;,init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.cancel);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpdialogrefresh&quot;,wpLink.refresh)},refresh:function(){var g;d=tinyMCEPopup.editor;e.search.refresh();e.recent.refresh();tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;)){b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.attr(&quot;checked&quot;,&quot;checked&quot;)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues();b.submit.val(wpLinkL10n.save)}tinyMCEPopup.storeSelection();b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}},cancel:function(){tinyMCEPopup.close()},update:function(){var h=tinyMCEPopup.editor,i={href:b.url.val(),title:b.title.val(),target:b.openInNewTab.attr(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;},j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);tinyMCEPopup.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-permalink&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click&quot;){b.url.focus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui.keyCode;switch(h.which){case g.ESCAPE:wpLink.cancel();break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault()},delayedCallback:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({top:n&lt;o?o-n:l},200)}});h.preventDefault()}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this),j)})};f.extend(a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(){if(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li&quot;):f(&quot;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(h,function(){g=j?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span class=&quot;item-title&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page,_ajax_linking_nonce:f(&quot;#_ajax_linking_nonce&quot;).val()};if(this.search){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(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 (17254 => 17255)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-01-11 19:58:58 UTC (rev 17254)
+++ trunk/wp-includes/script-loader.php        2011-01-11 20:03:50 UTC (rev 17255)
</span><span class="lines">@@ -270,7 +270,7 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(adminBarL10n);}catch(e){};',
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array('jquery'), '20101223' );
</del><ins>+        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array('jquery'), '20100111' );
</ins><span class="cx">         $scripts-&gt;localize( 'wplink', 'wpLinkL10n', array(
</span><span class="cx">                 'update' =&gt; __('Update'),
</span><span class="cx">                 'save' =&gt; __('Add Link'),
</span></span></pre>
</div>
</div>

</body>
</html>