Don't rely on plugin_basename( WP_STREAM_DIR )
to define the db versions option_name
#388
Labels
plugin_basename( WP_STREAM_DIR )
to define the db versions option_name
#388
Working on #387 I realized that if the plugin directory changes for any reason and you update no previous stored version will be found because we are defining and querying for the option_name using
plugin_basename( WP_STREAM_DIR ) . '_db'
;If a user downloads the zip from git_hub the directory will be
wp-stream-xxxxx
where xxxxx is either the branch or tag. If the user updates to a newer version via the dashboard the stream tables could be overwritten.I think we should just define as a constant somewhere and use the same prefix as the settings
wp_stream_db
. We would have run a check for the old name somehow before migrating old installation to the new key. Maybe a$wpdb->
query for `option_name LIKE '%wp-stream%' or something.The text was updated successfully, but these errors were encountered: