WordPress.org

Make WordPress Core

Ticket #2684: ui_cleanup_bookmarks.diff

File ui_cleanup_bookmarks.diff, 1.6 KB (added by ryanscheuermann, 12 years ago)

ui cleanup for manage bookmarks

  • wp-admin/link-manager.php

     
    9090
    9191<h2><?php _e('Bookmark Management'); ?></h2>
    9292<p><?php _e('Here you add links to sites that you visit often and share them on your blog. When you have a list of links in your sidebar to other blogs, it&#8217;s called a &#8220;blogroll.&#8221;'); ?></p>
     93<?php
     94if ( 'all' == $cat_id )
     95        $cat_id = '';
     96$links = get_bookmarks("category=$cat_id&hide_invisible=0&orderby=$sqlorderby&hide_empty=0");
     97if ($links) {
     98?>
    9399<form id="cats" method="get" action="">
    94100<p>Currently showing
    95101<?php $categories = get_categories("hide_empty=1&type=link"); ?>
     
    128134        </thead>
    129135        <tbody id="the-list">
    130136<?php
    131 if ( 'all' == $cat_id )
    132         $cat_id = '';
    133 $links = get_bookmarks("category=$cat_id&hide_invisible=0&orderby=$sqlorderby&hide_empty=0");
    134 if ($links)
    135137        foreach ($links as $link) {
    136138                $link->link_name = wp_specialchars($link->link_name);
    137139                $link->link_description = wp_specialchars($link->link_description);
     
    186188<div id="ajax-response"></div>
    187189
    188190<p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Bookmarks') ?> &raquo;" onclick="return confirm('<?php _e("You are about to delete these bookmarks permanently \\n  \'Cancel\' to stop, \'OK\' to delete.") ?>')" /></p>
     191<?php } ?>
     192
     193<h3><a href="link-add.php"><?php _e('Create New Bookmark &raquo;'); ?></a></h3>
    189194</div>
    190195</form>
    191196