Plugin Directory

Changeset 3798524


Ignore:
Timestamp:
11/12/2026 02:34:07 PM (less than one hour ago)
Author:
statnav
Message:

Update to version 1.0.1 from GitHub

Location:
statnav-helper
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • statnav-helper/tags/1.0.1/statnav-helper.php

    r3798291 r3798524  
    33 * Plugin Name: Statnav Helper
    44 * Description: Secure connection handoff for Statnav.
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: Statnav
    77 * Author URI: https://statnav.app/
    … …  
    1515
    1616final class Woo_Reports_Helper {
    17     const VERSION = '1.0.0';
     17    const VERSION = '1.0.1';
    1818    const ROUTE = 'woo_reports_events';
    1919    private static $writing = false;
    … …  
    236236    }
    237237    public static function routes() {
     238        register_rest_route( 'woo-reports-helper/v1', '/status', array(
     239            'methods' => 'GET', 'callback' => static function () { return new WP_REST_Response( array( 'version' => Woo_Reports_Helper::VERSION ), 200 ); },
     240            'permission_callback' => '__return_true',
     241        ) );
    238242        // WooCommerce cannot POST credentials to a local development server. The helper
    239243        // holds them briefly on the HTTPS store until Statnav claims them once.
  • statnav-helper/trunk/statnav-helper.php

    r3798291 r3798524  
    33 * Plugin Name: Statnav Helper
    44 * Description: Secure connection handoff for Statnav.
    5  * Version: 1.0.0
     5 * Version: 1.0.1
    66 * Author: Statnav
    77 * Author URI: https://statnav.app/
    … …  
    1515
    1616final class Woo_Reports_Helper {
    17     const VERSION = '1.0.0';
     17    const VERSION = '1.0.1';
    1818    const ROUTE = 'woo_reports_events';
    1919    private static $writing = false;
    … …  
    236236    }
    237237    public static function routes() {
     238        register_rest_route( 'woo-reports-helper/v1', '/status', array(
     239            'methods' => 'GET', 'callback' => static function () { return new WP_REST_Response( array( 'version' => Woo_Reports_Helper::VERSION ), 200 ); },
     240            'permission_callback' => '__return_true',
     241        ) );
    238242        // WooCommerce cannot POST credentials to a local development server. The helper
    239243        // holds them briefly on the HTTPS store until Statnav claims them once.
Note: See TracChangeset for help on using the changeset viewer.