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

fix: plugin version after activation #2447

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions includes/Install/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@

$was_installed_before = get_option( 'dokan_theme_version', false );

update_option( 'dokan_theme_version', DOKAN_PLUGIN_VERSION );

if ( ! $was_installed_before ) {
update_option( 'dokan_theme_version', DOKAN_PLUGIN_VERSION );
update_option( 'dokan_admin_setup_wizard_ready', false );
set_transient( '_dokan_setup_page_redirect', true, 30 );
}
Expand Down Expand Up @@ -505,7 +504,7 @@
*
* @return string
*/
private static function parse_update_notice( $content, $new_version ) {

Check warning on line 507 in includes/Install/Installer.php

View workflow job for this annotation

GitHub Actions / Run PHPCS inspection

The method parameter $new_version is never used
// Output Upgrade Notice.
$matches = null;
$regexp = '~==\s*Upgrade Notice\s*==\s*=\s*(.*)\s*=(.*)(=\s*' . preg_quote( DOKAN_PLUGIN_VERSION, '/' ) . '\s*=|$)~Uis';
Expand Down
Loading