Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'upgrader_post_install' prompts setup wizard again? #27

Open
websevendev opened this issue Jun 8, 2017 · 0 comments
Open

'upgrader_post_install' prompts setup wizard again? #27

websevendev opened this issue Jun 8, 2017 · 0 comments

Comments

@websevendev
Copy link

websevendev commented Jun 8, 2017

I've never actually been able to test the theme update process as a customer, since Themeforest doesn't add your own theme to your account.

I noticed this code here and it made me wonder, when a client updates the theme through the Envato Market plugin, will they be prompted to run the setup wizard again?

/**
 * After a theme update we clear the setup_complete option. This prompts the user to visit the update page again.
 *
 * @since 1.1.8
 * @access public
 */
public function upgrader_post_install( $return, $theme ) {
	if ( is_wp_error( $return ) ) {
		return $return;
	}
	if ( $theme != get_stylesheet() ) {
		return $return;
	}
	update_option( 'envato_setup_complete', false );
	return $return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant