Skip to content

Releases: mnestorov/wp-multisite-cookie-manager

2.1.3

30 Nov 14:08
1f69385
Compare
Choose a tag to compare

License update.

2.1.2

12 Oct 08:18
26fda6a
Compare
Choose a tag to compare

Minor bug fixes on button styles

2.1.1

12 Oct 07:52
1ddd2e5
Compare
Choose a tag to compare

Minor button style changes on plugin admin, added additional info to README.md file

2.1

12 Oct 07:36
7857314
Compare
Choose a tag to compare
2.1
  • Provide a button on an plugin admin page that, when pressed, will clear the cookies with the unique cookie name from the database.
    • The mn_handle_clear_cookies_request function is hooked to the admin_init action, and checks if the "Clear Cookies" button was pressed.
    • If the button was pressed, it checks the nonce for security, calls the mn_clear_cookies function to clear cookies from the database, and displays a success message using add_settings_error.

2.0.4

11 Oct 14:24
f62010f
Compare
Choose a tag to compare

Bug fixes, also only the cookie with the unique name generated by the plugin will be processed and logged to the database and only will be displayed the information for the cookies set by the plugin.

2.0.3

11 Oct 12:58
306fdd0
Compare
Choose a tag to compare

Use a transient to cache the geolocation data, added deactivation hook, bug fixes and improvements

2.0.2

11 Oct 11:28
4df772c
Compare
Choose a tag to compare

Additional functionality added

  • The cookie_value of the custom cookie will contain both the session ID and geolocation data, which can be parsed on the server or client-side as needed.
    • The mn_get_geolocation_data() function is called to obtain the geolocation data.
    • The session ID is either retrieved from an existing cookie or generated anew using wp_generate_uuid4().
    • The cookie_value is constructed as a JSON object containing the session ID and geolocation data.
    • The setcookie() function is called to set the custom cookie with the new cookie_value.
    • Optionally, a separate session ID cookie is set if it doesn’t already exist.
  • Modify the Database Table Structure:
    • Update the database table structure to include new columns for storing geo-location and session data.
  • Log Geo-location and Session Data:
    • Update the mn_log_cookie_usage() function to log geo-location and user session data along with the cookie data.
  • Display Geo-location and Session Data:
    • Update the mn_cookie_reporting_page() function to display the geo-location and session data in the Cookie Report table.

2.0.1

11 Oct 08:53
c02438b
Compare
Choose a tag to compare

Minor improvements

  • Added additional function for the css styles of the plugin admin, added minor styling to the plugin admin debug info, removed all inline css, minor fixes on the plugin description in to the README.md file.

2.0

11 Oct 08:00
87185e9
Compare
Choose a tag to compare
2.0

Major bug fixes and improvements, adding of additional error checking, sanitize JSON data, changing the name of the cookie

  • Sanitize and handle the JSON data correctly when saving and retrieving it from the database.
  • Enable error reporting to catch any PHP errors or warnings that might be occurring.
  • Display the raw data being saved to the database on the settings page for debugging purposes.
  • Modifying mn_get_cookie_expiration and mn_cookie_settings_page functions to use get_blog_option and update_blog_option instead of get_site_option and update_site_option.
  • The cookie name will have the format __site_name_blog_id, where site_name is the name of the site (with spaces replaced by underscores and converted to lowercase), and blog_id is the ID of the current blog.
  • Added more detailed explanation of how the plugin works in to the README.md file.

1.9

10 Oct 13:55
e440410
Compare
Choose a tag to compare
1.9

Make the plugin accessible in the admin area of all sites in a multisite network