Plugin Directory

Changeset 3157726


Ignore:
Timestamp:
09/25/2024 04:39:38 PM (16 months ago)
Author:
Hakik
Message:

v1.0.5: Fix: Disallowed a temporary user to access plugin setting page using a link.

Location:
create-temporary-login/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • create-temporary-login/trunk/create-temporary-login.php

    r3126804 r3157726  
    44Plugin URI:         https://wordpress.org/plugins/create-temporary-login
    55Description:        Create passwordless temporary login links to easily give access to your site's dashboard.
    6 Version:            1.0.4
     6Version:            1.0.5
    77Author:             Hakik Zaman
    88Author URI:         https://profiles.wordpress.org/users/hakik 
     
    2121 */
    2222if ( ! defined( 'CTLAZ_TEMP_LOGIN_VERSION' ) ) {
    23     define( 'CTLAZ_TEMP_LOGIN_VERSION', '1.0.4' );
     23    define( 'CTLAZ_TEMP_LOGIN_VERSION', '1.0.5' );
    2424}
    2525
  • create-temporary-login/trunk/includes/class-admin.php

    r3108848 r3157726  
    9999     */
    100100    public function create_temporary_login(){
     101
     102        /**
     103         * If current user is a temporary user and
     104         *
     105         * want to access the `Plugin Settings` page using the link
     106         *
     107         */
     108
     109        if( is_user_logged_in() &&
     110            ctlaz_create_temporary_login()->get_option()->is_temporary_user( get_current_user_id() )
     111        ){
     112            /**
     113             * Redirect the user to the `Dashboard > index.php`
     114             */
     115            wp_safe_redirect( admin_url() );
     116        }
     117
    101118
    102119        echo "<h1>".esc_html__( 'WP Bifröst - Settings (Instant Passwordless Temporary Login Links)', 'create-temporary-login' )."</h1>";
  • create-temporary-login/trunk/languages/create-temporary-login.pot

    r3095291 r3157726  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Bifröst - Create Passwordless Temporary Login Links 1.0.3\n"
     5"Project-Id-Version: WP Bifröst - Instant Passwordless Temporary Login Links 1.0.5\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/create-temporary-login\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-05-30T06:31:54+00:00\n"
     12"POT-Creation-Date: 2024-09-24T09:08:51+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.9.0\n"
     14"X-Generator: WP-CLI 2.10.0\n"
    1515"X-Domain: create-temporary-login\n"
    1616
    1717#. Plugin Name of the plugin
    18 msgid "WP Bifröst - Create Passwordless Temporary Login Links"
     18#: create-temporary-login.php
     19msgid "WP Bifröst - Instant Passwordless Temporary Login Links"
    1920msgstr ""
    2021
    2122#. Plugin URI of the plugin
     23#: create-temporary-login.php
    2224msgid "https://wordpress.org/plugins/create-temporary-login"
    2325msgstr ""
    2426
    2527#. Description of the plugin
     28#: create-temporary-login.php
    2629msgid "Create passwordless temporary login links to easily give access to your site's dashboard."
    2730msgstr ""
    2831
    2932#. Author of the plugin
     33#: create-temporary-login.php
    3034msgid "Hakik Zaman"
    3135msgstr ""
    3236
    3337#. Author URI of the plugin
     38#: create-temporary-login.php
    3439msgid "https://profiles.wordpress.org/users/hakik"
    3540msgstr ""
    3641
    37 #: includes/class-admin.php:102
    38 msgid "WP Bifröst - Settings (Create Passwordless Temporary Login Links)"
     42#: includes/class-admin.php:119
     43msgid "WP Bifröst - Settings (Instant Passwordless Temporary Login Links)"
    3944msgstr ""
    4045
    41 #: includes/class-admin.php:104
     46#: includes/class-admin.php:121
    4247msgid "Generate a link"
    4348msgstr ""
    4449
    45 #: includes/class-admin.php:143
     50#: includes/class-admin.php:160
    4651msgid "Delete"
    4752msgstr ""
    4853
    49 #: includes/class-admin.php:145
     54#: includes/class-admin.php:162
    5055msgid "Copied"
    5156msgstr ""
    5257
    53 #: includes/class-admin.php:149
     58#: includes/class-admin.php:166
    5459msgid "Extend 3 days"
    5560msgstr ""
    5661
    57 #: includes/class-admin.php:157
     62#: includes/class-admin.php:175
    5863msgid "Click to Copy!"
    5964msgstr ""
    6065
    61 #: includes/class-admin.php:249
     66#: includes/class-admin.php:267
    6267msgid "Create Temporary Login"
    6368msgstr ""
    6469
    65 #: includes/class-admin.php:286
     70#: includes/class-admin.php:304
    6671msgid "<strong>Error:</strong> The username is not registered on this site. If you are unsure of your username, try your email address instead."
    6772msgstr ""
  • create-temporary-login/trunk/readme.txt

    r3126804 r3157726  
    55Requires at least: 6.2
    66Tested up to: 6.6
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8989== Changelog ==
    9090
     91= 1.0.5 =
     92* Fix: Disallowed a temporary user to access plugin setting page using a link.
     93
    9194= 1.0.4 =
    92 * Update: Extend time for 3 days button is always visible now.
     95* Update: Extend time for 3 days is always visible now.
    9396
    9497= 1.0.3 =
Note: See TracChangeset for help on using the changeset viewer.