Custom_Image_Header::step(): int

In this article

Gets the current step.

Return

int Current step.

Source

public function step() {	if ( ! isset( $_GET['step'] ) ) {	return 1;	}	$step = (int) $_GET['step'];	if ( $step < 1 || 3 < $step ||	( 2 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce-custom-header-upload'], 'custom-header-upload' ) ) ||	( 3 === $step && ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'custom-header-crop-image' ) )	) {	return 1;	}	return $step; } 

Changelog

VersionDescription
2.6.0Introduced.

User Contributed Notes

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