Bulk_Upgrader_Skin::feedback( string $string )


Description Description


Parameters Parameters

$string

(string) (Required)


Top ↑

Source Source

File: wp-admin/includes/class-bulk-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;
		}
		if ( $this->in_loop ) {
			echo "$string<br />\n";
		} else {
			echo "<p>$string</p>\n";
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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