<!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>[15788] trunk: s/showposts/posts_per_page/</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15788">15788</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-10-13 05:25:00 +0000 (Wed, 13 Oct 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>s/showposts/posts_per_page/</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesnavmenuphp">trunk/wp-admin/includes/nav-menu.php</a></li>
<li><a href="#trunkwpincludesdefaultwidgetsphp">trunk/wp-includes/default-widgets.php</a></li>
<li><a href="#trunkwpincludesnavmenuphp">trunk/wp-includes/nav-menu.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpadmineditlinkcategoriesphp">trunk/wp-admin/edit-link-categories.php</a></li>
<li><a href="#trunkwpadmineditlinkcategoryformphp">trunk/wp-admin/edit-link-category-form.php</a></li>
<li><a href="#trunkwpadminlinkcategoryphp">trunk/wp-admin/link-category.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadmineditlinkcategoriesphp">trunk/wp-admin/edit-link-categories.php</a></li>
<li><a href="#trunkwpadmineditlinkcategoryformphp">trunk/wp-admin/edit-link-category-form.php</a></li>
<li><a href="#trunkwpadminlinkcategoryphp">trunk/wp-admin/link-category.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditlinkcategoriesphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/edit-link-categories.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-categories.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-admin/edit-link-categories.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -1,237 +0,0 @@
</span><del>-&lt;?php
-/**
- * Edit Link Categories Administration Panel.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/** WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-// Handle bulk actions
-if ( isset($_GET['action']) &amp;&amp; isset($_GET['delete']) ) {
-        check_admin_referer('bulk-link-categories');
-        $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
-
-        if ( !current_user_can('manage_categories') )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
-
-        if ( 'delete' == $doaction ) {
-                $cats = (array) $_GET['delete'];
-                $default_cat_id = get_option('default_link_category');
-
-                foreach( $cats as $cat_ID ) {
-                        $cat_ID = (int) $cat_ID;
-                        // Don't delete the default cats.
-                        if ( $cat_ID == $default_cat_id )
-                                wp_die( sprintf( __(&quot;Can&amp;#8217;t delete the &lt;strong&gt;%s&lt;/strong&gt; category: this is the default one&quot;), get_term_field('name', $cat_ID, 'link_category') ) );
-
-                        wp_delete_term($cat_ID, 'link_category', array('default' =&gt; $default_cat_id));
-                }
-
-                $location = 'edit-link-categories.php';
-                if ( $referer = wp_get_referer() ) {
-                        if ( false !== strpos($referer, 'edit-link-categories.php') )
-                                $location = $referer;
-                }
-
-                $location = add_query_arg('message', 6, $location);
-                wp_redirect($location);
-                exit();
-        }
-} elseif ( ! empty($_GET['_wp_http_referer']) ) {
-         wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
-         exit;
-}
-
-$title = __('Link Categories');
-
-wp_enqueue_script('admin-categories');
-if ( current_user_can('manage_categories') )
-        wp_enqueue_script('inline-edit-tax');
-
-add_contextual_help($current_screen, '&lt;p&gt;' . __('You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.') . '&lt;/p&gt;' .
-        '&lt;p&gt;' . __('You can delete link categories, but that action does not delete the links within the category. Instead, it moves them to the default link category.') . '&lt;/p&gt;' .
-        '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
-        '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Links_Link_Categories_SubPanel&quot; target=&quot;_blank&quot;&gt;Link Categories Documentation&lt;/a&gt;') . '&lt;/p&gt;' .
-        '&lt;p&gt;' . __('&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;') . '&lt;/p&gt;'
-);
-
-require_once ('admin-header.php');
-
-$messages[1] = __('Category added.');
-$messages[2] = __('Category deleted.');
-$messages[3] = __('Category updated.');
-$messages[4] = __('Category not added.');
-$messages[5] = __('Category not updated.');
-$messages[6] = __('Categories deleted.'); ?&gt;
-
-&lt;div class=&quot;wrap nosubsub&quot;&gt;
-&lt;?php screen_icon(); ?&gt;
-&lt;h2&gt;&lt;?php echo esc_html( $title );
-if ( isset($_GET['s']) &amp;&amp; $_GET['s'] )
-        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_GET['s']) ) ); ?&gt;
-&lt;/h2&gt;
-
-&lt;?php if ( isset($_GET['message']) &amp;&amp; ( $msg = (int) $_GET['message'] ) ) : ?&gt;
-&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;?php echo $messages[$msg]; ?&gt;&lt;/p&gt;&lt;/div&gt;
-&lt;?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
-endif; ?&gt;
-
-&lt;form class=&quot;search-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
-&lt;p class=&quot;search-box&quot;&gt;
-        &lt;label class=&quot;screen-reader-text&quot; for=&quot;link-category-search-input&quot;&gt;&lt;?php _e( 'Search Categories' ); ?&gt;:&lt;/label&gt;
-        &lt;input type=&quot;text&quot; id=&quot;link-category-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
-        &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Search Categories' ); ?&gt;&quot; class=&quot;button&quot; /&gt;
-&lt;/p&gt;
-&lt;/form&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-
-&lt;div id=&quot;col-container&quot;&gt;
-
-&lt;div id=&quot;col-right&quot;&gt;
-&lt;div class=&quot;col-wrap&quot;&gt;
-&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
-&lt;div class=&quot;tablenav&quot;&gt;
-
-&lt;?php
-$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
-if ( empty($pagenum) )
-        $pagenum = 1;
-if ( ! isset( $catsperpage ) || $catsperpage &lt; 0 )
-        $catsperpage = 20;
-
-$page_links = paginate_links( array(
-        'base' =&gt; add_query_arg( 'pagenum', '%#%' ),
-        'format' =&gt; '',
-        'prev_text' =&gt; __('&amp;laquo;'),
-        'next_text' =&gt; __('&amp;raquo;'),
-        'total' =&gt; ceil(wp_count_terms('link_category') / $catsperpage),
-        'current' =&gt; $pagenum
-));
-
-if ( $page_links )
-        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action&quot;&gt;
-&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
-&lt;/select&gt;
-&lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
-&lt;?php wp_nonce_field('bulk-link-categories'); ?&gt;
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-
-&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
-
-&lt;table class=&quot;widefat fixed&quot; cellspacing=&quot;0&quot;&gt;
-        &lt;thead&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('edit-link-categories'); ?&gt;
-        &lt;/tr&gt;
-        &lt;/thead&gt;
-
-        &lt;tfoot&gt;
-        &lt;tr&gt;
-&lt;?php print_column_headers('edit-link-categories', false); ?&gt;
-        &lt;/tr&gt;
-        &lt;/tfoot&gt;
-
-        &lt;tbody id=&quot;the-list&quot; class=&quot;list:link-cat&quot;&gt;
-&lt;?php
-$start = ($pagenum - 1) * $catsperpage;
-$args = array('offset' =&gt; $start, 'number' =&gt; $catsperpage, 'hide_empty' =&gt; 0);
-if ( !empty( $_GET['s'] ) )
-        $args['search'] = $_GET['s'];
-
-$categories = get_terms( 'link_category', $args );
-if ( $categories ) {
-        $output = '';
-        foreach ( $categories as $category ) {
-                $output .= link_cat_row($category);
-        }
-        echo $output;
-        unset($category);
-}
-
-?&gt;
-        &lt;/tbody&gt;
-&lt;/table&gt;
-
-&lt;div class=&quot;tablenav&quot;&gt;
-&lt;?php
-if ( $page_links )
-        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
-?&gt;
-
-&lt;div class=&quot;alignleft actions&quot;&gt;
-&lt;select name=&quot;action2&quot;&gt;
-&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
-&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
-&lt;/select&gt;
-&lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; class=&quot;button-secondary action&quot; /&gt;
-&lt;/div&gt;
-
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/div&gt;
-&lt;br class=&quot;clear&quot; /&gt;
-&lt;/form&gt;
-
-&lt;div class=&quot;form-wrap&quot;&gt;
-&lt;p&gt;&lt;?php printf(__('&lt;strong&gt;Note:&lt;/strong&gt;&lt;br /&gt;Deleting a category does not delete the links in that category. Instead, links that were only assigned to the deleted category are set to the category &lt;strong&gt;%s&lt;/strong&gt;.'), get_term_field('name', get_option('default_link_category'), 'link_category')) ?&gt;&lt;/p&gt;
-&lt;/div&gt;
-
-
-&lt;/div&gt;
-&lt;/div&gt;&lt;!-- /col-right --&gt;
-
-&lt;div id=&quot;col-left&quot;&gt;
-&lt;div class=&quot;col-wrap&quot;&gt;
-
-&lt;?php if ( current_user_can('manage_categories') ) {
-        $category = (object) array(); $category-&gt;parent = 0; do_action('add_link_category_form_pre', $category); ?&gt;
-
-&lt;div class=&quot;form-wrap&quot;&gt;
-&lt;h3&gt;&lt;?php _e('Add Link Category'); ?&gt;&lt;/h3&gt;
-&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
-&lt;form name=&quot;addcat&quot; id=&quot;addcat&quot; class=&quot;add:the-list: validate&quot; method=&quot;post&quot; action=&quot;link-category.php&quot;&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;addcat&quot; /&gt;
-&lt;?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-link-category'); ?&gt;
-
-&lt;div class=&quot;form-field form-required&quot;&gt;
-        &lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;
-        &lt;input name=&quot;name&quot; id=&quot;link-name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
-&lt;/div&gt;
-&lt;?php if ( !global_terms_enabled() ) { ?&gt;
-&lt;div class=&quot;form-field&quot;&gt;
-        &lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;
-        &lt;input name=&quot;slug&quot; id=&quot;link-slug&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
-        &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
-&lt;/div&gt;
-&lt;?php } ?&gt;
-&lt;div class=&quot;form-field&quot;&gt;
-        &lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;
-        &lt;textarea name=&quot;description&quot; id=&quot;link-description&quot; rows=&quot;5&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;
-        &lt;p&gt;&lt;?php _e('The description is not prominent by default; however, some themes may show it.'); ?&gt;&lt;/p&gt;
-&lt;/div&gt;
-
-&lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Add Category'); ?&gt;&quot; /&gt;&lt;/p&gt;
-&lt;?php do_action('edit_link_category_form', $category); ?&gt;
-&lt;/form&gt;
-&lt;/div&gt;
-
-&lt;?php } ?&gt;
-
-&lt;/div&gt;
-&lt;/div&gt;&lt;!-- /col-left --&gt;
-
-&lt;/div&gt;&lt;!-- /col-container --&gt;
-&lt;/div&gt;&lt;!-- /wrap --&gt;
-
-&lt;?php inline_edit_term_row('edit-link-categories', 'link_category'); ?&gt;
-&lt;?php include('./admin-footer.php'); ?&gt;
</del></span></pre></div>
<a id="trunkwpadmineditlinkcategoriesphpfromrev15772trunkwpadmineditlinkcategoriesphp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/edit-link-categories.php (from rev 15772, trunk/wp-admin/edit-link-categories.php) (0 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-categories.php                                (rev 0)
+++ trunk/wp-admin/edit-link-categories.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -0,0 +1,237 @@
</span><ins>+&lt;?php
+/**
+ * Edit Link Categories Administration Panel.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** WordPress Administration Bootstrap */
+require_once('./admin.php');
+
+// Handle bulk actions
+if ( isset($_GET['action']) &amp;&amp; isset($_GET['delete']) ) {
+        check_admin_referer('bulk-link-categories');
+        $doaction = $_GET['action'] ? $_GET['action'] : $_GET['action2'];
+
+        if ( !current_user_can('manage_categories') )
+                wp_die(__('Cheatin&amp;#8217; uh?'));
+
+        if ( 'delete' == $doaction ) {
+                $cats = (array) $_GET['delete'];
+                $default_cat_id = get_option('default_link_category');
+
+                foreach( $cats as $cat_ID ) {
+                        $cat_ID = (int) $cat_ID;
+                        // Don't delete the default cats.
+                        if ( $cat_ID == $default_cat_id )
+                                wp_die( sprintf( __(&quot;Can&amp;#8217;t delete the &lt;strong&gt;%s&lt;/strong&gt; category: this is the default one&quot;), get_term_field('name', $cat_ID, 'link_category') ) );
+
+                        wp_delete_term($cat_ID, 'link_category', array('default' =&gt; $default_cat_id));
+                }
+
+                $location = 'edit-link-categories.php';
+                if ( $referer = wp_get_referer() ) {
+                        if ( false !== strpos($referer, 'edit-link-categories.php') )
+                                $location = $referer;
+                }
+
+                $location = add_query_arg('message', 6, $location);
+                wp_redirect($location);
+                exit();
+        }
+} elseif ( ! empty($_GET['_wp_http_referer']) ) {
+         wp_redirect( remove_query_arg( array('_wp_http_referer', '_wpnonce'), stripslashes($_SERVER['REQUEST_URI']) ) );
+         exit;
+}
+
+$title = __('Link Categories');
+
+wp_enqueue_script('admin-categories');
+if ( current_user_can('manage_categories') )
+        wp_enqueue_script('inline-edit-tax');
+
+add_contextual_help($current_screen, '&lt;p&gt;' . __('You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.') . '&lt;/p&gt;' .
+        '&lt;p&gt;' . __('You can delete link categories, but that action does not delete the links within the category. Instead, it moves them to the default link category.') . '&lt;/p&gt;' .
+        '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
+        '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Links_Link_Categories_SubPanel&quot; target=&quot;_blank&quot;&gt;Link Categories Documentation&lt;/a&gt;') . '&lt;/p&gt;' .
+        '&lt;p&gt;' . __('&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;') . '&lt;/p&gt;'
+);
+
+require_once ('admin-header.php');
+
+$messages[1] = __('Category added.');
+$messages[2] = __('Category deleted.');
+$messages[3] = __('Category updated.');
+$messages[4] = __('Category not added.');
+$messages[5] = __('Category not updated.');
+$messages[6] = __('Categories deleted.'); ?&gt;
+
+&lt;div class=&quot;wrap nosubsub&quot;&gt;
+&lt;?php screen_icon(); ?&gt;
+&lt;h2&gt;&lt;?php echo esc_html( $title );
+if ( isset($_GET['s']) &amp;&amp; $_GET['s'] )
+        printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __('Search results for &amp;#8220;%s&amp;#8221;') . '&lt;/span&gt;', esc_html( stripslashes($_GET['s']) ) ); ?&gt;
+&lt;/h2&gt;
+
+&lt;?php if ( isset($_GET['message']) &amp;&amp; ( $msg = (int) $_GET['message'] ) ) : ?&gt;
+&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;&lt;?php echo $messages[$msg]; ?&gt;&lt;/p&gt;&lt;/div&gt;
+&lt;?php $_SERVER['REQUEST_URI'] = remove_query_arg(array('message'), $_SERVER['REQUEST_URI']);
+endif; ?&gt;
+
+&lt;form class=&quot;search-form&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
+&lt;p class=&quot;search-box&quot;&gt;
+        &lt;label class=&quot;screen-reader-text&quot; for=&quot;link-category-search-input&quot;&gt;&lt;?php _e( 'Search Categories' ); ?&gt;:&lt;/label&gt;
+        &lt;input type=&quot;text&quot; id=&quot;link-category-search-input&quot; name=&quot;s&quot; value=&quot;&lt;?php _admin_search_query(); ?&gt;&quot; /&gt;
+        &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Search Categories' ); ?&gt;&quot; class=&quot;button&quot; /&gt;
+&lt;/p&gt;
+&lt;/form&gt;
+&lt;br class=&quot;clear&quot; /&gt;
+
+&lt;div id=&quot;col-container&quot;&gt;
+
+&lt;div id=&quot;col-right&quot;&gt;
+&lt;div class=&quot;col-wrap&quot;&gt;
+&lt;form id=&quot;posts-filter&quot; action=&quot;&quot; method=&quot;get&quot;&gt;
+&lt;div class=&quot;tablenav&quot;&gt;
+
+&lt;?php
+$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 0;
+if ( empty($pagenum) )
+        $pagenum = 1;
+if ( ! isset( $catsperpage ) || $catsperpage &lt; 0 )
+        $catsperpage = 20;
+
+$page_links = paginate_links( array(
+        'base' =&gt; add_query_arg( 'pagenum', '%#%' ),
+        'format' =&gt; '',
+        'prev_text' =&gt; __('&amp;laquo;'),
+        'next_text' =&gt; __('&amp;raquo;'),
+        'total' =&gt; ceil(wp_count_terms('link_category') / $catsperpage),
+        'current' =&gt; $pagenum
+));
+
+if ( $page_links )
+        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
+?&gt;
+
+&lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;select name=&quot;action&quot;&gt;
+&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
+&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
+&lt;/select&gt;
+&lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
+&lt;?php wp_nonce_field('bulk-link-categories'); ?&gt;
+&lt;/div&gt;
+
+&lt;br class=&quot;clear&quot; /&gt;
+&lt;/div&gt;
+
+&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
+
+&lt;table class=&quot;widefat fixed&quot; cellspacing=&quot;0&quot;&gt;
+        &lt;thead&gt;
+        &lt;tr&gt;
+&lt;?php print_column_headers('edit-link-categories'); ?&gt;
+        &lt;/tr&gt;
+        &lt;/thead&gt;
+
+        &lt;tfoot&gt;
+        &lt;tr&gt;
+&lt;?php print_column_headers('edit-link-categories', false); ?&gt;
+        &lt;/tr&gt;
+        &lt;/tfoot&gt;
+
+        &lt;tbody id=&quot;the-list&quot; class=&quot;list:link-cat&quot;&gt;
+&lt;?php
+$start = ($pagenum - 1) * $catsperpage;
+$args = array('offset' =&gt; $start, 'number' =&gt; $catsperpage, 'hide_empty' =&gt; 0);
+if ( !empty( $_GET['s'] ) )
+        $args['search'] = $_GET['s'];
+
+$categories = get_terms( 'link_category', $args );
+if ( $categories ) {
+        $output = '';
+        foreach ( $categories as $category ) {
+                $output .= link_cat_row($category);
+        }
+        echo $output;
+        unset($category);
+}
+
+?&gt;
+        &lt;/tbody&gt;
+&lt;/table&gt;
+
+&lt;div class=&quot;tablenav&quot;&gt;
+&lt;?php
+if ( $page_links )
+        echo &quot;&lt;div class='tablenav-pages'&gt;$page_links&lt;/div&gt;&quot;;
+?&gt;
+
+&lt;div class=&quot;alignleft actions&quot;&gt;
+&lt;select name=&quot;action2&quot;&gt;
+&lt;option value=&quot;&quot; selected=&quot;selected&quot;&gt;&lt;?php _e('Bulk Actions'); ?&gt;&lt;/option&gt;
+&lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete'); ?&gt;&lt;/option&gt;
+&lt;/select&gt;
+&lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Apply'); ?&gt;&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; class=&quot;button-secondary action&quot; /&gt;
+&lt;/div&gt;
+
+&lt;br class=&quot;clear&quot; /&gt;
+&lt;/div&gt;
+&lt;br class=&quot;clear&quot; /&gt;
+&lt;/form&gt;
+
+&lt;div class=&quot;form-wrap&quot;&gt;
+&lt;p&gt;&lt;?php printf(__('&lt;strong&gt;Note:&lt;/strong&gt;&lt;br /&gt;Deleting a category does not delete the links in that category. Instead, links that were only assigned to the deleted category are set to the category &lt;strong&gt;%s&lt;/strong&gt;.'), get_term_field('name', get_option('default_link_category'), 'link_category')) ?&gt;&lt;/p&gt;
+&lt;/div&gt;
+
+
+&lt;/div&gt;
+&lt;/div&gt;&lt;!-- /col-right --&gt;
+
+&lt;div id=&quot;col-left&quot;&gt;
+&lt;div class=&quot;col-wrap&quot;&gt;
+
+&lt;?php if ( current_user_can('manage_categories') ) {
+        $category = (object) array(); $category-&gt;parent = 0; do_action('add_link_category_form_pre', $category); ?&gt;
+
+&lt;div class=&quot;form-wrap&quot;&gt;
+&lt;h3&gt;&lt;?php _e('Add Link Category'); ?&gt;&lt;/h3&gt;
+&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
+&lt;form name=&quot;addcat&quot; id=&quot;addcat&quot; class=&quot;add:the-list: validate&quot; method=&quot;post&quot; action=&quot;link-category.php&quot;&gt;
+&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;addcat&quot; /&gt;
+&lt;?php wp_original_referer_field(true, 'previous'); wp_nonce_field('add-link-category'); ?&gt;
+
+&lt;div class=&quot;form-field form-required&quot;&gt;
+        &lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;
+        &lt;input name=&quot;name&quot; id=&quot;link-name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
+&lt;/div&gt;
+&lt;?php if ( !global_terms_enabled() ) { ?&gt;
+&lt;div class=&quot;form-field&quot;&gt;
+        &lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;
+        &lt;input name=&quot;slug&quot; id=&quot;link-slug&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
+        &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
+&lt;/div&gt;
+&lt;?php } ?&gt;
+&lt;div class=&quot;form-field&quot;&gt;
+        &lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;
+        &lt;textarea name=&quot;description&quot; id=&quot;link-description&quot; rows=&quot;5&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;
+        &lt;p&gt;&lt;?php _e('The description is not prominent by default; however, some themes may show it.'); ?&gt;&lt;/p&gt;
+&lt;/div&gt;
+
+&lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; class=&quot;button&quot; name=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Add Category'); ?&gt;&quot; /&gt;&lt;/p&gt;
+&lt;?php do_action('edit_link_category_form', $category); ?&gt;
+&lt;/form&gt;
+&lt;/div&gt;
+
+&lt;?php } ?&gt;
+
+&lt;/div&gt;
+&lt;/div&gt;&lt;!-- /col-left --&gt;
+
+&lt;/div&gt;&lt;!-- /col-container --&gt;
+&lt;/div&gt;&lt;!-- /wrap --&gt;
+
+&lt;?php inline_edit_term_row('edit-link-categories', 'link_category'); ?&gt;
+&lt;?php include('./admin-footer.php'); ?&gt;
</ins></span></pre></div>
<a id="trunkwpadmineditlinkcategoryformphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/edit-link-category-form.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-category-form.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-admin/edit-link-category-form.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -1,92 +0,0 @@
</span><del>-&lt;?php
-/**
- * Edit link category form for inclusion in administration panels.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-// don't load directly
-if ( !defined('ABSPATH') )
-        die('-1');
-
-if ( !current_user_can('manage_categories') )
-        wp_die(__('You do not have sufficient permissions to edit link categories for this site.'));
-
-/**
- * @var object
- */
-if ( ! isset( $category ) )
-        $category = (object) array();
-
-if ( ! empty($cat_ID) ) {
-        /**
-         * @var string
-         */
-        $heading = '&lt;h2&gt;' . __('Edit Link Category') . '&lt;/h2&gt;';
-        $submit_text = __('Update Category');
-        $form = '&lt;form name=&quot;editcat&quot; id=&quot;editcat&quot; method=&quot;post&quot; action=&quot;link-category.php&quot; class=&quot;validate&quot;&gt;';
-        $action = 'editedcat';
-        $nonce_action = 'update-link-category_' . $cat_ID;
-        do_action('edit_link_category_form_pre', $category);
-} else {
-        $heading = '&lt;h2&gt;' . __('Add Link Category') . '&lt;/h2&gt;';
-        $submit_text = __('Add Category');
-        $form = '&lt;form name=&quot;addcat&quot; id=&quot;addcat&quot; class=&quot;add:the-list: validate&quot; method=&quot;post&quot; action=&quot;link-category.php&quot;&gt;';
-        $action = 'addcat';
-        $nonce_action = 'add-link-category';
-        do_action('add_link_category_form_pre', $category);
-}
-
-/**
- * @ignore
- * @since 2.7
- * @internal Used to prevent errors in page when no category is being edited.
- *
- * @param object $category
- */
-function _fill_empty_link_category(&amp;$category) {
-        if ( ! isset( $category-&gt;name ) )
-                $category-&gt;name = '';
-
-        if ( ! isset( $category-&gt;slug ) )
-                $category-&gt;slug = '';
-
-        if ( ! isset( $category-&gt;description ) )
-                $category-&gt;description = '';
-}
-
-_fill_empty_link_category($category);
-?&gt;
-
-&lt;div class=&quot;wrap&quot;&gt;
-&lt;?php screen_icon(); ?&gt;
-&lt;?php echo $heading ?&gt;
-&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
-&lt;?php echo $form ?&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;&lt;?php echo esc_attr($action) ?&gt;&quot; /&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;cat_ID&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;term_id) ?&gt;&quot; /&gt;
-&lt;?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?&gt;
-        &lt;table class=&quot;form-table&quot;&gt;
-                &lt;tr class=&quot;form-field form-required&quot;&gt;
-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;&lt;/th&gt;
-                        &lt;td&gt;&lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;&lt;/td&gt;
-                &lt;/tr&gt;
-&lt;?php if ( !is_multisite() ) { ?&gt;
-                &lt;tr class=&quot;form-field&quot;&gt;
-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;&lt;/th&gt;
-                        &lt;td&gt;&lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr(apply_filters('editable_slug', $category-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;&lt;br /&gt;
-            &lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/td&gt;
-                &lt;/tr&gt;
-&lt;?php } ?&gt;
-                &lt;tr class=&quot;form-field&quot;&gt;
-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;&lt;/th&gt;
-                        &lt;td&gt;&lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width: 97%;&quot;&gt;&lt;?php echo $category-&gt;description; ?&gt;&lt;/textarea&gt;&lt;br /&gt;
-                        &lt;span class=&quot;description&quot;&gt;&lt;?php _e('The description is not prominent by default; however, some themes may show it.'); ?&gt;&lt;/span&gt;&lt;/td&gt;
-                &lt;/tr&gt;
-                &lt;?php do_action('edit_link_category_form_fields', $category); ?&gt;
-        &lt;/table&gt;
-&lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; class=&quot;button-primary&quot; name=&quot;submit&quot; value=&quot;&lt;?php echo esc_attr($submit_text) ?&gt;&quot; /&gt;&lt;/p&gt;
-&lt;?php do_action('edit_link_category_form', $category); ?&gt;
-&lt;/form&gt;
-&lt;/div&gt;
</del></span></pre></div>
<a id="trunkwpadmineditlinkcategoryformphpfromrev15772trunkwpadmineditlinkcategoryformphp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/edit-link-category-form.php (from rev 15772, trunk/wp-admin/edit-link-category-form.php) (0 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-link-category-form.php                                (rev 0)
+++ trunk/wp-admin/edit-link-category-form.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -0,0 +1,92 @@
</span><ins>+&lt;?php
+/**
+ * Edit link category form for inclusion in administration panels.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+// don't load directly
+if ( !defined('ABSPATH') )
+        die('-1');
+
+if ( !current_user_can('manage_categories') )
+        wp_die(__('You do not have sufficient permissions to edit link categories for this site.'));
+
+/**
+ * @var object
+ */
+if ( ! isset( $category ) )
+        $category = (object) array();
+
+if ( ! empty($cat_ID) ) {
+        /**
+         * @var string
+         */
+        $heading = '&lt;h2&gt;' . __('Edit Link Category') . '&lt;/h2&gt;';
+        $submit_text = __('Update Category');
+        $form = '&lt;form name=&quot;editcat&quot; id=&quot;editcat&quot; method=&quot;post&quot; action=&quot;link-category.php&quot; class=&quot;validate&quot;&gt;';
+        $action = 'editedcat';
+        $nonce_action = 'update-link-category_' . $cat_ID;
+        do_action('edit_link_category_form_pre', $category);
+} else {
+        $heading = '&lt;h2&gt;' . __('Add Link Category') . '&lt;/h2&gt;';
+        $submit_text = __('Add Category');
+        $form = '&lt;form name=&quot;addcat&quot; id=&quot;addcat&quot; class=&quot;add:the-list: validate&quot; method=&quot;post&quot; action=&quot;link-category.php&quot;&gt;';
+        $action = 'addcat';
+        $nonce_action = 'add-link-category';
+        do_action('add_link_category_form_pre', $category);
+}
+
+/**
+ * @ignore
+ * @since 2.7
+ * @internal Used to prevent errors in page when no category is being edited.
+ *
+ * @param object $category
+ */
+function _fill_empty_link_category(&amp;$category) {
+        if ( ! isset( $category-&gt;name ) )
+                $category-&gt;name = '';
+
+        if ( ! isset( $category-&gt;slug ) )
+                $category-&gt;slug = '';
+
+        if ( ! isset( $category-&gt;description ) )
+                $category-&gt;description = '';
+}
+
+_fill_empty_link_category($category);
+?&gt;
+
+&lt;div class=&quot;wrap&quot;&gt;
+&lt;?php screen_icon(); ?&gt;
+&lt;?php echo $heading ?&gt;
+&lt;div id=&quot;ajax-response&quot;&gt;&lt;/div&gt;
+&lt;?php echo $form ?&gt;
+&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;&lt;?php echo esc_attr($action) ?&gt;&quot; /&gt;
+&lt;input type=&quot;hidden&quot; name=&quot;cat_ID&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;term_id) ?&gt;&quot; /&gt;
+&lt;?php wp_original_referer_field(true, 'previous'); wp_nonce_field($nonce_action); ?&gt;
+        &lt;table class=&quot;form-table&quot;&gt;
+                &lt;tr class=&quot;form-field form-required&quot;&gt;
+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php _e('Link Category name') ?&gt;&lt;/label&gt;&lt;/th&gt;
+                        &lt;td&gt;&lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr($category-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+&lt;?php if ( !is_multisite() ) { ?&gt;
+                &lt;tr class=&quot;form-field&quot;&gt;
+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php _e('Link Category slug') ?&gt;&lt;/label&gt;&lt;/th&gt;
+                        &lt;td&gt;&lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&lt;?php echo esc_attr(apply_filters('editable_slug', $category-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;&lt;br /&gt;
+            &lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+&lt;?php } ?&gt;
+                &lt;tr class=&quot;form-field&quot;&gt;
+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php _e('Description (optional)') ?&gt;&lt;/label&gt;&lt;/th&gt;
+                        &lt;td&gt;&lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width: 97%;&quot;&gt;&lt;?php echo $category-&gt;description; ?&gt;&lt;/textarea&gt;&lt;br /&gt;
+                        &lt;span class=&quot;description&quot;&gt;&lt;?php _e('The description is not prominent by default; however, some themes may show it.'); ?&gt;&lt;/span&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;?php do_action('edit_link_category_form_fields', $category); ?&gt;
+        &lt;/table&gt;
+&lt;p class=&quot;submit&quot;&gt;&lt;input type=&quot;submit&quot; class=&quot;button-primary&quot; name=&quot;submit&quot; value=&quot;&lt;?php echo esc_attr($submit_text) ?&gt;&quot; /&gt;&lt;/p&gt;
+&lt;?php do_action('edit_link_category_form', $category); ?&gt;
+&lt;/form&gt;
+&lt;/div&gt;
</ins></span></pre></div>
<a id="trunkwpadminincludesnavmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/nav-menu.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/nav-menu.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-admin/includes/nav-menu.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -652,7 +652,7 @@
</span><span class="cx">                 ?&gt;&quot;&gt;
</span><span class="cx">                         &lt;ul id=&quot;&lt;?php echo $post_type_name; ?&gt;checklist-most-recent&quot; class=&quot;categorychecklist form-no-clear&quot;&gt;
</span><span class="cx">                                 &lt;?php
</span><del>-                                $recent_args = array_merge( $args, array( 'orderby' =&gt; 'post_date', 'order' =&gt; 'DESC', 'showposts' =&gt; 15 ) );
</del><ins>+                                $recent_args = array_merge( $args, array( 'orderby' =&gt; 'post_date', 'order' =&gt; 'DESC', 'posts_per_page' =&gt; 15 ) );
</ins><span class="cx">                                 $most_recent = $get_posts-&gt;query( $recent_args );
</span><span class="cx">                                 $args['walker'] = $walker;
</span><span class="cx">                                 echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $most_recent), 0, (object) $args );
</span></span></pre></div>
<a id="trunkwpadminlinkcategoryphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/link-category.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/link-category.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-admin/link-category.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -1,100 +0,0 @@
</span><del>-&lt;?php
-/**
- * Manage link category administration actions.
- *
- * This page is accessed by the link management pages and handles the forms and
- * AJAX processes for category actions.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/** Load WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-wp_reset_vars(array('action', 'cat'));
-
-switch($action) {
-
-case 'addcat':
-
-        check_admin_referer('add-link-category');
-
-        if ( !current_user_can('manage_categories') )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
-
-        if ( wp_insert_term($_POST['name'], 'link_category', $_POST ) ) {
-                wp_redirect('edit-link-categories.php?message=1#addcat');
-        } else {
-                wp_redirect('edit-link-categories.php?message=4#addcat');
-        }
-        exit;
-break;
-
-case 'delete':
-        $cat_ID = (int) $_GET['cat_ID'];
-        check_admin_referer('delete-link-category_' .  $cat_ID);
-
-        if ( !current_user_can('manage_categories') )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
-
-        $cat_name = get_term_field('name', $cat_ID, 'link_category');
-        $default_cat_id = get_option('default_link_category');
-
-        // Don't delete the default cats.
-        if ( $cat_ID == $default_cat_id )
-                wp_die(sprintf(__(&quot;Can&amp;#8217;t delete the &lt;strong&gt;%s&lt;/strong&gt; category: this is the default one&quot;), $cat_name));
-
-        wp_delete_term($cat_ID, 'link_category', array('default' =&gt; $default_cat_id));
-
-        $location = 'edit-link-categories.php';
-        if ( $referer = wp_get_original_referer() ) {
-                if ( false !== strpos($referer, 'edit-link-categories.php') )
-                        $location = $referer;
-        }
-
-        $location = add_query_arg('message', 2, $location);
-
-        wp_redirect($location);
-        exit;
-
-break;
-
-case 'edit':
-        $title = __('Edit Category');
-        $parent_file = 'link-manager.php';
-        $submenu_file = 'edit-link-categories.php';
-        require_once ('admin-header.php');
-        $cat_ID = (int) $_GET['cat_ID'];
-        $category = get_term_to_edit($cat_ID, 'link_category');
-        include('./edit-link-category-form.php');
-        include('./admin-footer.php');
-        exit;
-break;
-
-case 'editedcat':
-        $cat_ID = (int) $_POST['cat_ID'];
-        check_admin_referer('update-link-category_' . $cat_ID);
-
-        if ( !current_user_can('manage_categories') )
-                wp_die(__('Cheatin&amp;#8217; uh?'));
-
-        $location = 'edit-link-categories.php';
-        if ( $referer = wp_get_original_referer() ) {
-                if ( false !== strpos($referer, 'edit-link-categories.php') )
-                        $location = $referer;
-        }
-
-        $update =  wp_update_term($cat_ID, 'link_category', $_POST);
-
-        if ( $update &amp;&amp; !is_wp_error($update) )
-                $location = add_query_arg('message', 3, $location);
-        else
-                $location = add_query_arg('message', 5, $location);
-
-        wp_redirect($location);
-        exit;
-break;
-}
-
-?&gt;
</del></span></pre></div>
<a id="trunkwpadminlinkcategoryphpfromrev15772trunkwpadminlinkcategoryphp"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/link-category.php (from rev 15772, trunk/wp-admin/link-category.php) (0 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/link-category.php                                (rev 0)
+++ trunk/wp-admin/link-category.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -0,0 +1,100 @@
</span><ins>+&lt;?php
+/**
+ * Manage link category administration actions.
+ *
+ * This page is accessed by the link management pages and handles the forms and
+ * AJAX processes for category actions.
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once('./admin.php');
+
+wp_reset_vars(array('action', 'cat'));
+
+switch($action) {
+
+case 'addcat':
+
+        check_admin_referer('add-link-category');
+
+        if ( !current_user_can('manage_categories') )
+                wp_die(__('Cheatin&amp;#8217; uh?'));
+
+        if ( wp_insert_term($_POST['name'], 'link_category', $_POST ) ) {
+                wp_redirect('edit-link-categories.php?message=1#addcat');
+        } else {
+                wp_redirect('edit-link-categories.php?message=4#addcat');
+        }
+        exit;
+break;
+
+case 'delete':
+        $cat_ID = (int) $_GET['cat_ID'];
+        check_admin_referer('delete-link-category_' .  $cat_ID);
+
+        if ( !current_user_can('manage_categories') )
+                wp_die(__('Cheatin&amp;#8217; uh?'));
+
+        $cat_name = get_term_field('name', $cat_ID, 'link_category');
+        $default_cat_id = get_option('default_link_category');
+
+        // Don't delete the default cats.
+        if ( $cat_ID == $default_cat_id )
+                wp_die(sprintf(__(&quot;Can&amp;#8217;t delete the &lt;strong&gt;%s&lt;/strong&gt; category: this is the default one&quot;), $cat_name));
+
+        wp_delete_term($cat_ID, 'link_category', array('default' =&gt; $default_cat_id));
+
+        $location = 'edit-link-categories.php';
+        if ( $referer = wp_get_original_referer() ) {
+                if ( false !== strpos($referer, 'edit-link-categories.php') )
+                        $location = $referer;
+        }
+
+        $location = add_query_arg('message', 2, $location);
+
+        wp_redirect($location);
+        exit;
+
+break;
+
+case 'edit':
+        $title = __('Edit Category');
+        $parent_file = 'link-manager.php';
+        $submenu_file = 'edit-link-categories.php';
+        require_once ('admin-header.php');
+        $cat_ID = (int) $_GET['cat_ID'];
+        $category = get_term_to_edit($cat_ID, 'link_category');
+        include('./edit-link-category-form.php');
+        include('./admin-footer.php');
+        exit;
+break;
+
+case 'editedcat':
+        $cat_ID = (int) $_POST['cat_ID'];
+        check_admin_referer('update-link-category_' . $cat_ID);
+
+        if ( !current_user_can('manage_categories') )
+                wp_die(__('Cheatin&amp;#8217; uh?'));
+
+        $location = 'edit-link-categories.php';
+        if ( $referer = wp_get_original_referer() ) {
+                if ( false !== strpos($referer, 'edit-link-categories.php') )
+                        $location = $referer;
+        }
+
+        $update =  wp_update_term($cat_ID, 'link_category', $_POST);
+
+        if ( $update &amp;&amp; !is_wp_error($update) )
+                $location = add_query_arg('message', 3, $location);
+        else
+                $location = add_query_arg('message', 5, $location);
+
+        wp_redirect($location);
+        exit;
+break;
+}
+
+?&gt;
</ins></span></pre></div>
<a id="trunkwpincludesdefaultwidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/default-widgets.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/default-widgets.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-includes/default-widgets.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -542,7 +542,7 @@
</span><span class="cx">                 else if ( $number &gt; 15 )
</span><span class="cx">                         $number = 15;
</span><span class="cx"> 
</span><del>-                $r = new WP_Query(array('showposts' =&gt; $number, 'nopaging' =&gt; 0, 'post_status' =&gt; 'publish', 'ignore_sticky_posts' =&gt; true));
</del><ins>+                $r = new WP_Query(array('posts_per_page' =&gt; $number, 'nopaging' =&gt; 0, 'post_status' =&gt; 'publish', 'ignore_sticky_posts' =&gt; true));
</ins><span class="cx">                 if ($r-&gt;have_posts()) :
</span><span class="cx"> ?&gt;
</span><span class="cx">                 &lt;?php echo $before_widget; ?&gt;
</span></span></pre></div>
<a id="trunkwpincludesnavmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/nav-menu.php (15787 => 15788)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/nav-menu.php        2010-10-13 05:05:25 UTC (rev 15787)
+++ trunk/wp-includes/nav-menu.php        2010-10-13 05:25:00 UTC (rev 15788)
</span><span class="lines">@@ -653,7 +653,7 @@
</span><span class="cx">                         'meta_value' =&gt; $object_id,
</span><span class="cx">                         'post_status' =&gt; 'any',
</span><span class="cx">                         'post_type' =&gt; 'nav_menu_item',
</span><del>-                        'showposts' =&gt; -1,
</del><ins>+                        'posts_per_page' =&gt; -1,
</ins><span class="cx">                 )
</span><span class="cx">         );
</span><span class="cx">         foreach( (array) $menu_items as $menu_item ) {
</span></span></pre>
</div>
</div>

</body>
</html>