Make WordPress Core

Ticket #3446: 3446.diff

File 3446.diff, 836 bytes (added by westi, 20 years ago)

Fix the blogroll category dropdown

  • wp-admin/link-manager.php

     
    7676<p><?php _e('Here you <a href="link-add.php">add links</a> 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>
    7777<form id="cats" method="get" action="">
    7878<p><?php
    79 $categories = get_categories("hide_empty=1&type=link");
     79$categories = get_categories("hide_empty=1&type=link&hierarchical=0");
    8080$select_cat = "<select name=\"cat_id\">\n";
    8181$select_cat .= '<option value="all"'  . (($cat_id == 'all') ? " selected='selected'" : '') . '>' . __('All') . "</option>\n";
    8282foreach ((array) $categories as $cat)