WP-Custom-List-Table-With-Database-Example icon indicating copy to clipboard operation
WP-Custom-List-Table-With-Database-Example copied to clipboard

DB version check is incorrect

Open Ontario7 opened this issue 7 years ago • 0 comments

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');

Ontario7 avatar Feb 18 '18 17:02 Ontario7