Un motore di ricerca WordPress per sviluppatori e autori di temi



upgrade_old_slugs ›

Da2.2.0
Deprecaton/a
upgrade_old_slugs ( Nessun parametro )
Definito a:
Codex:

Upgrade old slugs made in version 2.2.



Sorgenti

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