Custom_Image_Header::step()
最后更新于:2021-11-25 19:48:44
Custom_Image_Header::step()Get the current step.
响应
(int) Current step.
源文件
文件: gc-admin/includes/class-custom-image-header.php
public function step() {
if ( ! isset( $_GET['step'] ) ) {
return 1;
}
$step = (int) $_GET['step'];
if ( $step < 1 || 3 < $step ||
( 2 === $step && ! gc_verify_nonce( $_REQUEST['_gcnonce-custom-header-upload'], 'custom-header-upload' ) ) ||
( 3 === $step && ! gc_verify_nonce( $_REQUEST['_gcnonce'], 'custom-header-crop-image' ) )
) {
return 1;
}
return $step;
}