diff --git a/README.md b/README.md index 88b7047..da0ae22 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,24 @@ To install this plugin, drop `biscotti.php` into your site's `wp-content/plugins ## Usage -Once activated, a new option will be available in the WordPress dashboard under "User -> Profile" called "Login Cookie Expiration". There, you can select the cookie expiration date of 3 months, 6 months, or 1 year on a per-account basis. +Once the plugin has been activated, a new option will be available in the WordPress dashboard under "User -> Profile" called "Login Cookie Expiration". There, you can select the cookie expiration date of 3 months, 6 months, or 1 year on a per-account basis. -After updating this setting, you _will_ need to log out and back into WordPress for your new cookie expiration value to take effect. +After updating this setting, you *will* need to log out and back into WordPress for your new cookie expiration value to take effect. -Enjoy your long cookie! \ No newline at end of file +Enjoy your long cookie! + +## Changelog + +### 2.0.0 + +Rewrite! Now, instead of forcing *everyone* to use the same login cookie expiration, Biscotti allows users to individually select their login cookie expiration on their profile page. + +### 1.0.0 + +Initial release. Simple plugin that forced login cookie expiration for every user to 1 year. + +## Credits + +All plugin code is (currently) Jason Cosper's fault. +Plugin header image courtesy of Terri Bateman. +Plugin icon courtesy of Toora Khan from Noun Project. \ No newline at end of file diff --git a/assets/banner-1544x500.jpg b/assets/banner-1544x500.jpg new file mode 100644 index 0000000..2f98deb Binary files /dev/null and b/assets/banner-1544x500.jpg differ diff --git a/assets/banner-772x250.jpg b/assets/banner-772x250.jpg new file mode 100644 index 0000000..b452761 Binary files /dev/null and b/assets/banner-772x250.jpg differ diff --git a/assets/icon-128x128.png b/assets/icon-128x128.png new file mode 100644 index 0000000..252c657 Binary files /dev/null and b/assets/icon-128x128.png differ diff --git a/assets/icon-256x256.png b/assets/icon-256x256.png new file mode 100644 index 0000000..2dcfed4 Binary files /dev/null and b/assets/icon-256x256.png differ diff --git a/biscotti.php b/biscotti.php index 8faf0c9..10a865c 100644 --- a/biscotti.php +++ b/biscotti.php @@ -8,18 +8,18 @@ * * @package Biscotti * @author Jason Cosper - * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ + * @license https://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ * @link https://github.com/boogah/biscotti * * @wordpress-plugin * Plugin Name: Biscotti * Plugin URI: https://github.com/boogah/biscotti - * Description: Biscotti makes your login cookie a little bit longer. + * Description: Biscotti makes your user's login cookie a little bit longer. * Version: 2.0.0 * Author: Jason Cosper * Author URI: https://jasoncosper.com/ * License: GPL-2.0+ - * License URI: http://www.gnu.org/licenses/gpl-2.0.txt + * License URI: https://www.gnu.org/licenses/gpl-2.0.txt */ // If this file is called directly, abort. @@ -27,9 +27,9 @@ if (! defined('WPINC') ) { die; } +// Add a dropdown menu to the user profile page that allows you to choose the login cookie's expiration date. function biscotti_login_cookie_expiration_form_fields( $user ) { - // Add a dropdown menu to the user profile page that allows you to choose the login cookie's expiration date. $expiration_options = array( '3 months' => '3 months', '6 months' => '6 months', @@ -54,9 +54,12 @@ function biscotti_login_cookie_expiration_form_fields( $user ) Profile" called "Login Cookie Expiration". There, you can select the cookie expiration date of 3 months, 6 months, or 1 year on a per-account basis. + +After updating this setting, you *will* need to log out and back into WordPress for your new cookie expiration value to take effect. + +Enjoy your long cookie! + +== Changelog == + += 2.0.0 = + +Rewrite! Now, instead of forcing *everyone* to use the same login cookie expiration, Biscotti allows users to individually select their login cookie expiration on their profile page. + += 1.0.0 = + +Initial release. Simple plugin that forced login cookie expiration for every user to 1 year. \ No newline at end of file