populate_roles_250()

Create and modify WordPress roles for WordPress 2.5.


Source

File: wp-admin/includes/schema.php

function populate_roles_250() {
	$role = get_role( 'administrator' );

	if ( !empty( $role ) ) {
		$role->add_cap( 'edit_dashboard' );
	}
}


Changelog

Changelog
Version Description
WP-2.5.0 Introduced.