A WordPress-centric search engine for devs and theme authors



upgrade_old_slugs ›

Since2.2.0
Deprecatedn/a
upgrade_old_slugs ( No parameters )
Defined at:
Codex:

Upgrade old slugs made in version 2.2.



Source

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'" );
}