New 'list_users' cap to provide more controls over listing users vs. editing

users.

Apply this new cap to the 'Authors & Users' menu item and 'Users' page in
wp-admin.

Bump db version to 14139 to pick up the new cap.

See #13074



git-svn-id: http://svn.automattic.com/wordpress/trunk@14189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
josephscott
2010-04-22 19:48:13 +00:00
parent f4ccd9cac3
commit e26aed0ac4
7 changed files with 24 additions and 14 deletions

View File

@@ -440,7 +440,7 @@ function upgrade_all() {
if ( $wp_current_db_version < 11958 )
upgrade_290();
if ( $wp_current_db_version < 14138 )
if ( $wp_current_db_version < 14139 )
upgrade_300();
maybe_disable_automattic_widgets();
@@ -1108,14 +1108,14 @@ function upgrade_290() {
function upgrade_300() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 12751 ) {
if ( $wp_current_db_version < 14139 ) {
populate_roles_300();
if ( is_multisite() && is_main_site() && ! defined( 'MULTISITE' ) && get_site_option( 'siteurl' ) === false )
add_site_option( 'siteurl', '' );
}
// #11866 (Convert the taxonomy children cache into a transient) - Remove old cache.
if ( $wp_current_db_version < 14138 ) {
if ( $wp_current_db_version < 14139 ) {
foreach ( get_taxonomies( array('hierarchical' => true) ) as $taxonomy )
delete_option($taxonomy . '_children');
}