执行WordPress 2.5.2中所做的更改。

原型

upgrade_252()

源文件

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

<?php
...
			$wpdb->insert( $wpdb->term_relationships, array('object_id' => $link->link_id, 'term_taxonomy_id' => $tt_id) );
		}
		// Set default to the last category we grabbed during the upgrade loop.
...
?>

其他

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