WordPress at a glance
function is not described

upgrade_old_slugs() WP 2.2.0

Upgrade old slugs made in version 2.2.

  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.

Return

Nothing (null).

Usage

upgrade_old_slugs();

Code of upgrade old slugs: wp-admin/includes/upgrade.php VER 5.1.1

<?php
function upgrade_old_slugs() {
	// Upgrade people who were using the Redirect Old Slugs plugin.
	global $wpdb;
	$wpdb->query( "UPDATE $wpdb->postmeta SET meta_key = '_wp_old_slug' WHERE meta_key = 'old_slug'" );
}