Uses
Uses | Description |
---|---|
wp-admin/includes/class-automatic-upgrader-skin.php: Automatic_Upgrader_Skin::feedback() | |
wp-includes/load.php: is_wp_error() | Check whether variable is a WordPress Error. |
Stores a log entry.
(string|array|WP_Error) (Required) Log entry data.
(mixed) (Optional) text replacements.
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 ); }
Version | Description |
---|---|
5.3.0 | Formalized the existing ...$args parameter by adding it to the function signature. |
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_ajax_upgrader_skin/feedback