Plugin Directory

Changeset 2829598


Ignore:
Timestamp:
12/06/2022 08:51:27 PM (3 years ago)
Author:
marius1hello
Message:

adding version 1.0.10 with settings form in debug mode

Location:
hello-login/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • hello-login/trunk/CHANGELOG.md

    r2829541 r2829598  
    11# Hellō Login Changelog
     2
     3## 1.0.10
     4
     5* Improvement: show settings form in debug mode
    26
    37## 1.0.9
  • hello-login/trunk/hello-login.php

    r2829541 r2829598  
    1717 * Plugin URI:        https://github.com/hellocoop/wordpress
    1818 * Description:       Free and simple to setup plugin provides registration and login with the Hellō Wallet. Users choose from popular social login, email, or crypto wallet. Setup in 7 clicks, not 7 hours.
    19  * Version:           1.0.9
     19 * Version:           1.0.10
    2020 * Requires at least: 4.9
    2121 * Requires PHP:      7.2
     
    8585     * @var string
    8686     */
    87     const VERSION = '1.0.9';
     87    const VERSION = '1.0.10';
    8888
    8989    /**
  • hello-login/trunk/includes/hello-login-settings-page.php

    r2829541 r2829598  
    484484
    485485        $api_url = rest_url( 'hello-login/v1/auth_url' );
     486
     487        $debug = isset( $_GET['debug'] );
     488        $configured = ! empty( $this->settings->client_id );
    486489        ?>
    487490        <div class="wrap">
    488491            <h2><?php print esc_html( get_admin_page_title() ); ?></h2>
    489492
    490             <?php if ( empty( $this->settings->client_id ) ) { ?>
    491             <p><h2>To use Hellō, you must configure your site. Hellō Quickstart will get you up and running in seconds. You will create a Hellō Wallet if you don't have one already</h2></p>
     493            <?php if ( ! $configured ) { ?>
     494            <p><h2>To use Hellō, you must configure your site. Hellō Quickstart will get you up and running in seconds. You will create a Hellō Wallet if you don't have one already.</h2></p>
    492495
    493496            <form method="get" action="https://quickstart.hello.coop/">
     
    501504            </form>
    502505
    503             <?php } else { ?>
    504 
     506            <?php } ?>
     507
     508            <?php if ( $configured || $debug ) { ?>
    505509            <?php if ( empty( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ) ) { ?>
    506510                <p id="link-hello-wallet"><h2>You are logged in with a username and a password. Link your Hellō Wallet to use Hellō in the future.</h2></p>
     
    535539            <?php } ?>
    536540
    537             <?php if ( isset( $_GET['debug'] ) ) { ?>
     541            <?php if ( $debug ) { ?>
    538542                <h4>Debug</h4>
    539                 <p>Hellō user id: <code><?php print esc_html( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ) ?></code></p>
     543
     544                <p>Hellō user id: <code><?php print esc_html( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ); ?></code></p>
     545
     546                <p>Settings:</p>
    540547                <pre>
    541                 <?php print esc_html( var_dump( $this->settings->get_values() ) ); ?>
     548                <?php var_dump( $this->settings->get_values() ); ?>
    542549                </pre>
    543550            }
  • hello-login/trunk/languages/hello-login.pot

    r2829541 r2829598  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Hellō Login 1.0.9\n"
     5"Project-Id-Version: Hellō Login 1.0.10\n"
    66"Report-Msgid-Bugs-To: "
    77"https://github.com/hellocoop/wordpress/issues\n"
  • hello-login/trunk/readme.txt

    r2829541 r2829598  
    55Requires at least: 4.9
    66Tested up to: 6.1
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.10
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    8181== Changelog ==
    8282
     83= 1.0.10 =
     84
     85* Improvement: show settings form in debug mode
     86
    8387= 1.0.9 =
    8488
Note: See TracChangeset for help on using the changeset viewer.