Used By
Used By | Description |
---|---|
wp-admin/includes/class-bulk-upgrader-skin.php: Bulk_Upgrader_Skin::bulk_header() | |
wp-admin/includes/class-bulk-upgrader-skin.php: Bulk_Upgrader_Skin::bulk_footer() |
(string) (Required)
(mixed) (Optional) text replacements.
File: wp-admin/includes/class-bulk-upgrader-skin.php
public function feedback( $string, ...$args ) { if ( isset( $this->upgrader->strings[ $string ] ) ) { $string = $this->upgrader->strings[ $string ]; } if ( strpos( $string, '%' ) !== false ) { if ( $args ) { $args = array_map( 'strip_tags', $args ); $args = array_map( 'esc_html', $args ); $string = vsprintf( $string, $args ); } } if ( empty( $string ) ) { return; } if ( $this->in_loop ) { echo "$string<br />\n"; } else { echo "<p>$string</p>\n"; } }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/bulk_upgrader_skin/feedback