执行WordPress 2.5.0中所做的更改。

原型

upgrade_250()

源文件

路径:wp-admin/includes/upgrade.php

<?php
...
			$wpdb->insert( $wpdb->term_taxonomy, array('term_id' => $term_id, 'taxonomy' => 'link_category', 'description' => '', 'parent' => 0, 'count' => 0) );
			$tt_ids[$term_id] = (int) $wpdb->insert_id;
		}
		// Associate links to cats.
		$links = $wpdb->get_results("SELECT link_id, link_category FROM $wpdb->links");
		if ( !empty($links) ) foreach ( $links as $link ) {
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/upgrade_250/