diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 521f492bfd..72d99b77b9 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -545,7 +545,7 @@ function upgrade_all() { if ( $wp_current_db_version < 33056 ) upgrade_431(); - if ( $wp_current_db_version < 34030 ) + if ( $wp_current_db_version < 35700 ) upgrade_440(); maybe_disable_link_manager(); @@ -1619,6 +1619,14 @@ function upgrade_440() { if ( $wp_current_db_version < 34030 ) { $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(191)" ); } + + // Remove the unused 'add_users' role. + $roles = wp_roles(); + foreach ( $roles->role_objects as $role ) { + if ( $role->has_cap( 'add_users' ) ) { + $role->remove_cap( 'add_users' ); + } + } } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index fdce4ad6c3..ba08ba1a72 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,14 +4,14 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta4-35700'; +$wp_version = '4.4-beta4-35701'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * * @global int $wp_db_version */ -$wp_db_version = 35638; +$wp_db_version = 35700; /** * Holds the TinyMCE version