Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

1.8

Choose a tag to compare

@mnestorov mnestorov released this 10 Oct 11:13
27d66d3

Added error handling and logging features

  • WP_DEBUG configurations are mentioned at the top as a reminder to enable them during development.
  • A mn_log_error function has been introduced for standardized error logging throughout the plugin.
  • Error handling has been added to the mn_get_cookie_expiration, mn_create_cookie_usage_table, and mn_log_cookie_usage functions to log database errors and other issues to the error log.
  • In the mn_log_cookie_usage function, a check has been added on the result of the $wpdb->insert() method call to log any errors that occur during the database insert operation.