Plugin Directory

Changeset 3375260


Ignore:
Timestamp:
10/08/2025 05:42:23 PM (5 months ago)
Author:
checkview
Message:

Update to version 2.0.21 from GitHub

Location:
checkview
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • checkview/tags/2.0.21/README.txt

    r3335533 r3375260  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.20
     10Stable tag: 2.0.21
    1111
    1212[CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. 
     
    8686
    8787== Changelog ==
     88= 2.0.21 =
     89* Handle errors when setting up logs folder.
     90* New filter that allows modification of the site URL used in JWT authentication.
     91
    8892= 2.0.20 =
    8993* Only run testing code for requests with newly required cookie.
     
    378382
    379383== Upgrade Notice ==
     384= 2.0.21 =
     385* Handle errors when setting up logs folder.
     386* New filter that allows modification of the site URL used in JWT authentication.
     387
    380388= 2.0.20 =
    381389* Only run testing code for requests with newly required cookie.
  • checkview/tags/2.0.21/admin/class-checkview-admin-logs.php

    r3216431 r3375260  
    122122            $fp = @fopen( $htaccess, 'w' );
    123123
    124             @fputs( $fp, 'deny from all' );
    125 
    126             @fclose( $fp );
     124            if ( ! $fp ) {
     125                error_log( 'CheckView: Could not create logs htaccess file: ' . $htaccess );
     126            } else {
     127                @fputs( $fp, 'deny from all' );
     128
     129                @fclose( $fp );
     130            }
    127131
    128132        }
     
    135139            $fp = @fopen( $index, 'w' );
    136140
    137             @fputs( $fp, '' );
    138 
    139             @fclose( $fp );
     141            if ( ! $fp ) {
     142                error_log( 'CheckView: Could not create logs index.html file: ' . $index );
     143            } else {
     144                @fputs( $fp, '' );
     145
     146                @fclose( $fp );
     147            }
    140148
    141149        }
  • checkview/tags/2.0.21/checkview.php

    r3335533 r3375260  
    1212 * Plugin URI:        https://checkview.io
    1313 * Description:       CheckView is the #1 fully automated solution to test your WordPress forms and detect form problems fast.  Automatically test your WordPress forms to ensure you never miss a lead again.
    14  * Version:           2.0.20
     14 * Version:           2.0.21
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.20' );
     38define( 'CHECKVIEW_VERSION', '2.0.21' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/tags/2.0.21/includes/checkview-functions.php

    r3335533 r3375260  
    8686        }
    8787        $jwt = (array) $decoded;
     88        $default_site_url = checkview_ensure_trailing_slash( get_bloginfo( 'url' ) );
     89
     90        /**
     91         * Filter: Allows sites with custom URL structures to modify the URL the JWT is checked against.
     92         *
     93         * @since 2.0.21
     94         *
     95         * @param string $default_site_url Default site URL.
     96         */
     97        $site_url = apply_filters( 'checkview_site_url', $default_site_url );
    8898
    8999        // If a URL mismatch, return false.
    90         if ( false === strpos( checkview_ensure_trailing_slash( get_bloginfo( 'url' ) ), checkview_ensure_trailing_slash( $jwt['websiteUrl'] ) ) ) {
     100        if ( false === strpos( $site_url, checkview_ensure_trailing_slash( $jwt['websiteUrl'] ) ) ) {
    91101            Checkview_Admin_Logs::add( 'api-logs', 'Invalid site url.' );
    92102            return false;
  • checkview/tags/2.0.21/includes/class-checkview.php

    r3335533 r3375260  
    8181            $this->version = CHECKVIEW_VERSION;
    8282        } else {
    83             $this->version = '2.0.20';
     83            $this->version = '2.0.21';
    8484        }
    8585        $this->plugin_name = 'checkview';
  • checkview/trunk/README.txt

    r3335533 r3375260  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.20
     10Stable tag: 2.0.21
    1111
    1212[CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. 
     
    8686
    8787== Changelog ==
     88= 2.0.21 =
     89* Handle errors when setting up logs folder.
     90* New filter that allows modification of the site URL used in JWT authentication.
     91
    8892= 2.0.20 =
    8993* Only run testing code for requests with newly required cookie.
     
    378382
    379383== Upgrade Notice ==
     384= 2.0.21 =
     385* Handle errors when setting up logs folder.
     386* New filter that allows modification of the site URL used in JWT authentication.
     387
    380388= 2.0.20 =
    381389* Only run testing code for requests with newly required cookie.
  • checkview/trunk/admin/class-checkview-admin-logs.php

    r3216431 r3375260  
    122122            $fp = @fopen( $htaccess, 'w' );
    123123
    124             @fputs( $fp, 'deny from all' );
    125 
    126             @fclose( $fp );
     124            if ( ! $fp ) {
     125                error_log( 'CheckView: Could not create logs htaccess file: ' . $htaccess );
     126            } else {
     127                @fputs( $fp, 'deny from all' );
     128
     129                @fclose( $fp );
     130            }
    127131
    128132        }
     
    135139            $fp = @fopen( $index, 'w' );
    136140
    137             @fputs( $fp, '' );
    138 
    139             @fclose( $fp );
     141            if ( ! $fp ) {
     142                error_log( 'CheckView: Could not create logs index.html file: ' . $index );
     143            } else {
     144                @fputs( $fp, '' );
     145
     146                @fclose( $fp );
     147            }
    140148
    141149        }
  • checkview/trunk/checkview.php

    r3335533 r3375260  
    1212 * Plugin URI:        https://checkview.io
    1313 * Description:       CheckView is the #1 fully automated solution to test your WordPress forms and detect form problems fast.  Automatically test your WordPress forms to ensure you never miss a lead again.
    14  * Version:           2.0.20
     14 * Version:           2.0.21
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.20' );
     38define( 'CHECKVIEW_VERSION', '2.0.21' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/trunk/includes/checkview-functions.php

    r3335533 r3375260  
    8686        }
    8787        $jwt = (array) $decoded;
     88        $default_site_url = checkview_ensure_trailing_slash( get_bloginfo( 'url' ) );
     89
     90        /**
     91         * Filter: Allows sites with custom URL structures to modify the URL the JWT is checked against.
     92         *
     93         * @since 2.0.21
     94         *
     95         * @param string $default_site_url Default site URL.
     96         */
     97        $site_url = apply_filters( 'checkview_site_url', $default_site_url );
    8898
    8999        // If a URL mismatch, return false.
    90         if ( false === strpos( checkview_ensure_trailing_slash( get_bloginfo( 'url' ) ), checkview_ensure_trailing_slash( $jwt['websiteUrl'] ) ) ) {
     100        if ( false === strpos( $site_url, checkview_ensure_trailing_slash( $jwt['websiteUrl'] ) ) ) {
    91101            Checkview_Admin_Logs::add( 'api-logs', 'Invalid site url.' );
    92102            return false;
  • checkview/trunk/includes/class-checkview.php

    r3335533 r3375260  
    8181            $this->version = CHECKVIEW_VERSION;
    8282        } else {
    83             $this->version = '2.0.20';
     83            $this->version = '2.0.21';
    8484        }
    8585        $this->plugin_name = 'checkview';
Note: See TracChangeset for help on using the changeset viewer.