upgrade_252()

Execute changes made in WordPress 2.5.2.


Source Source

File: wp-admin/includes/upgrade.php

			$level = get_user_meta( $user->ID, $wpdb->prefix . 'user_level', true );
			$role  = translate_level_to_role( $level );
			update_user_meta( $user->ID, $wpdb->prefix . 'capabilities', array( $role => true ) );
		}


Top ↑

Changelog Changelog

Changelog
Version Description
2.5.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.