WP_Upgrader_Skin::feedback( string $feedback, mixed $args )
Parameters
- $feedback
-
(Required) Message data.
- $args
-
(Optional) text replacements.
Source
File: wp-admin/includes/class-wp-upgrader-skin.php
public function feedback($string) {
if ( isset( $this->upgrader->strings[$string] ) )
$string = $this->upgrader->strings[$string];
if ( strpos($string, '%') !== false ) {
$args = func_get_args();
$args = array_splice($args, 1);
if ( $args ) {
$args = array_map( 'strip_tags', $args );
$args = array_map( 'esc_html', $args );
$string = vsprintf($string, $args);
}
}
if ( empty($string) )
return;
show_message($string);
}
Changelog
Version | Description |
---|---|
5.9.0 | Renamed $string (a PHP reserved keyword) to $feedback for PHP 8 named parameter support. |
2.8.0 | Introduced. |