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

Stores a message about the upgrade.

Parameters Parameters


(string|array|WP_Error) (Required) Message data.


(mixed) (Optional) text replacements.

Top ↑

Source Source

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

	public function feedback( $data, ...$args ) {
		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 ) );

		parent::feedback( $data, ...$args );

Top ↑

Changelog Changelog

Version Description
5.3.0 Formalized the existing ...$args parameter by adding it to the function signature.
4.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.