includes/class-wp-requirements.php
public function process_failure() {
		if ( ! count( $this->results ) || ! count( $this->not_valid_actions ) ) {
			return;
		}

		foreach ( $this->not_valid_actions as $action ) {
			switch ( $action ) {
				case 'deactivate':
					deactivate_plugins( $this->get_plugin( 'basename' ), true );

					if ( isset( $_GET['activate'] ) ) {
						unset( $_GET['activate'] );
					}
					break;

				case 'admin_notice':
					add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
					break;
			}
		}
	}
public function process_failure() {
		if ( ! count( $this->results ) || ! count( $this->not_valid_actions ) ) {
			return;
		}

		foreach ( $this->not_valid_actions as $action ) {
			switch ( $action ) {
				case 'deactivate':
					deactivate_plugins( $this->get_plugin( 'basename' ), true );

					if ( isset( $_GET['activate'] ) ) {
						unset( $_GET['activate'] );
					}
					break;

				case 'admin_notice':
					add_action( 'admin_notices', array( $this, 'display_admin_notice' ) );
					break;
			}
		}
	}
public function process_failure ( ) { if ( ! count ( $ this -> results ) || ! count ( $ this -> not_valid_actions ) ) { return ; } foreach ( $ this -> not_valid_actions as $ action ) { switch ( $ action ) { case 'deactivate' : deactivate_plugins ( $ this -> get_plugin ( 'basename' ) , true ) ; if ( isset ( $ _GET [ 'activate' ] ) ) { unset ( $ _GET [ 'activate' ] ) ; } break ; case 'admin_notice' : add_action ( 'admin_notices' , array ( $ this , 'display_admin_notice' ) ) ; break ; } } }
Get the list of registered actions and do everything defined by them
Get the list of registered actions and do everything defined by them