WordPress.org

Make WordPress Core

Changeset 4590


Ignore:
Timestamp:
12/03/2006 09:32:17 PM (11 years ago)
Author:
matt
Message:

Don't display table if no links/bookmarks, fixes #2684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r4535 r4590  
    9595</form>
    9696
     97<?php
     98if ( 'all' == $cat_id )
     99    $cat_id = '';
     100$links = get_bookmarks( "category=$cat_id&hide_invisible=0&orderby=$sqlorderby&hide_empty=0" );
     101if ( $links ) {
     102?>
     103
    97104<form id="links" method="post" action="link.php">
    98105<?php wp_nonce_field('bulk-bookmarks') ?>
     
    115122    <tbody id="the-list">
    116123<?php
    117 if ( 'all' == $cat_id )
    118     $cat_id = '';
    119 $links = get_bookmarks("category=$cat_id&hide_invisible=0&orderby=$sqlorderby&hide_empty=0");
    120 if ($links)
    121124    foreach ($links as $link) {
    122125        $link->link_name = wp_specialchars($link->link_name);
     
    174177<p class="submit"><input type="submit" class="button" name="deletebookmarks" id="deletebookmarks" value="<?php _e('Delete Checked Links') ?> &raquo;" onclick="return confirm('<?php echo js_escape(__("You are about to delete these links permanently \\n  \'Cancel\' to stop, \'OK\' to delete.")); ?>')" /></p>
    175178</form>
     179
     180<?php } ?>
     181
    176182</div>
    177183
Note: See TracChangeset for help on using the changeset viewer.