Use default_link_category.
git-svn-id: https://develop.svn.wordpress.org/trunk@3700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5b54f4c199
commit
6768503353
|
@ -317,7 +317,7 @@ function wp_insert_link($linkdata) {
|
|||
|
||||
// Make sure we set a valid category
|
||||
if (0 == count($link_category) || !is_array($link_category)) {
|
||||
$link_category = array(get_option('default_category'));
|
||||
$link_category = array(get_option('default_link_category'));
|
||||
}
|
||||
|
||||
if ( $update ) {
|
||||
|
@ -404,7 +404,7 @@ function wp_set_link_cats($link_ID = 0, $link_categories = array()) {
|
|||
global $wpdb;
|
||||
// If $link_categories isn't already an array, make it one:
|
||||
if (!is_array($link_categories) || 0 == count($link_categories))
|
||||
$link_categories = array(get_option('default_category'));
|
||||
$link_categories = array(get_option('default_link_category'));
|
||||
|
||||
$link_categories = array_unique($link_categories);
|
||||
|
||||
|
|
Loading…
Reference in New Issue