Plugin Directory

Changeset 2942084

Timestamp:
07/23/2023 12:29:58 PM (13 months ago)
Author:
ayeshrajans
Message:

Add v1.4

Location:
clear-logout
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • clear-logout/trunk/clear-logout.php

    r2497179 r2942084  
    44Plugin URI: https://wordpress.org/plugins/clear-logout/
    55Description: A tiny WordPress plugin to clear all browser data related to the site upon logout (With `Clear-Site-Data` header).
    6 Version: 1.2
     6Version: 1.
    77Author: Ayesh Karunaratne
    88Author URI: https://aye.sh/open-source
     
    2121 * future storage options browsers might add in the future.
    2222 */
    23 \add_action('wp_logout', static function () {
    24     $clear = \defined('WP_CLEAR_LOGOUT_CLEAR') && \is_string(\WP_CLEAR_LOGOUT_CLEAR)
    25         ? \str_replace(["\n","\r"], '', \WP_CLEAR_LOGOUT_CLEAR)
     23 {
     24    $clear = is_string(\WP_CLEAR_LOGOUT_CLEAR)
     25        ? str_replace(["\n","\r"], '', \WP_CLEAR_LOGOUT_CLEAR)
    2626        : '"*"';
    2727
    28     \header('Clear-Site-Data: ' . $clear);
     28    header('Clear-Site-Data: ' . $clear);
    2929});
  • clear-logout/trunk/composer.json

    r2497168 r2942084  
    1717        "source": "https://github.com/phpwatch/wordpress-clear-logout"
    1818    },
    19     "keywords": ["security", "logout", "authentication", "wordpress", "wordpress-security", "wordpress-plugin"],
     19    "keywords": ["security", "logout", "authentication", "wordpress", "wordpress-security", "wordpress-plugin"],
    2020    "minimum-stability": "stable",
    2121    "require": {
    22         "php": ">=5.6.0",
     22        "php": ">=.0",
    2323        "composer/installers": "~1.0"
    2424    },
  • clear-logout/trunk/readme.txt

    r2497185 r2942084  
    33Tags: password, security, logout, authentication
    44Requires at least: 5.1
    5 Tested up to: 5.7
    6 Stable tag: 1.2
    7 Requires PHP: 5.6
     5Tested up to:
     6Stable tag: 1.
     7Requires PHP:
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 This plugin ensures that when users of your web site (including site administrators), the browsers are instructed to clear all residue such as cookies and caches to enhance the security.
     15This plugin ensures that when users of your website (including site administrators), the browsers are instructed to clear all residue such as cookies and caches to enhance the security.
    1616
    1717[`Clear-Site-Data` HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data) is sent when a user logs out, which supported browsers will react by removing all existing cookies, cache, and other storage. It will **not** remove saved passwords, permissions, adblocker rules, and other data that are supposed to be permanent.
     
    4545* Initial release.
    4646
    47 
    4847= 1.1 =
    4948* Update supported up-to version number.
     
    5150= 1.2 =
    5251* Update supported up-to version number.
     52
     53
     54
     55
Note: See TracChangeset for help on using the changeset viewer.