upgrade_440

Executes changes made in WordPress 4.4.0.

Description

upgrade_440(); 

Usage

  1. if ( !function_exists( 'upgrade_440' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = upgrade_440(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/upgrade.php  
  1. function upgrade_440() { 
  2. global $wp_current_db_version, $wpdb; 
  3.  
  4. if ( $wp_current_db_version < 34030 ) { 
  5. $wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(191)" ); 
  6.  
  7. // Remove the unused 'add_users' role. 
  8. $roles =wp_roles); 
  9. foreach ( $roles->role_objects as $role ) { 
  10. if ( $role->has_cap( 'add_users' ) ) { 
  11. $role->remove_cap( 'add_users' );