Bulk_Upgrader_Skin::feedback() WordPress Method
The Bulk_Upgrader_Skin::feedback() method is used to display feedback during the upgrade process.
Bulk_Upgrader_Skin::feedback( string $feedback, mixed $args ) #
Parameters
- $feedback
(string)(Required)Message data.
- $args
(mixed)(Optional)text replacements.
Source
File: wp-admin/includes/class-bulk-upgrader-skin.php
public function feedback( $feedback, ...$args ) { if ( isset( $this->upgrader->strings[ $feedback ] ) ) { $feedback = $this->upgrader->strings[ $feedback ]; } if ( strpos( $feedback, '%' ) !== false ) { if ( $args ) { $args = array_map( 'strip_tags', $args ); $args = array_map( 'esc_html', $args ); $feedback = vsprintf( $feedback, $args ); } } if ( empty( $feedback ) ) { return; } if ( $this->in_loop ) { echo "$feedback<br />\n"; } else { echo "<p>$feedback</p>\n"; } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.9.0 | Introduced. |