Skip to content

DB version check is incorrect #3

Description

@Ontario7

You should make test for $installed_ver BEFORE add_option instruction, otherwise it's code never run))

// save current database version for later use (on upgrade)
  add_option('cltd_example_db_version', $cltd_example_db_version);

 ...
  $installed_ver = get_option('cltd_example_db_version');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions