WP_Ajax_Upgrader_Skin::feedback( string|array|WP_Error $feedback, mixed $args )

Stores a message about the upgrade.


Parameters

$feedback

(Required) Message data.

$args

(Optional) text replacements.


Source

File: wp-admin/includes/class-wp-ajax-upgrader-skin.php

	public function feedback( $data ) {
		if ( is_wp_error( $data ) ) {
			foreach ( $data->get_error_codes() as $error_code ) {
				$this->errors->add( $error_code, $data->get_error_message( $error_code ), $data->get_error_data( $error_code ) );
			}
		}

		$args = func_get_args();
		call_user_func_array( array( $this, 'parent::feedback' ), $args );
	}


Changelog

Changelog
Version Description
5.9.0 Renamed $data to $feedback for PHP 8 named parameter support.
5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.
4.6.0 Introduced.