Plugin Directory

Changeset 2548212


Ignore:
Timestamp:
06/15/2021 01:27:14 PM (4 years ago)
Author:
laterpay
Message:

Deploy version 2.3.1

Location:
revenue-generator
Files:
649 added
17 edited

Legend:

Unmodified
Added
Removed
  • revenue-generator/trunk/languages/revenue-generator.po

    r2537988 r2548212  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Revenue Generator 2.3.0\n"
     5"Project-Id-Version: Revenue Generator 2.3.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/revenue-generator\n"
    77"Last-Translator: Kimberly Moore <[email protected]>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2021-05-26T09:12:27+00:00\n"
     12"POT-Creation-Date: 2021-06-15T13:14:01+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
  • revenue-generator/trunk/readme.txt

    r2537988 r2548212  
    33Contributors: laterpay
    44Donate link: https://laterpay.net
    5 Tags: Laterpay
     5Tags: contribution, micropayment, conversion, monetization
    66Requires at least: 5.3
    77Tested up to: 5.7
    88Requires PHP: 5.6
    9 Stable tag: 2.3.0
     9Stable tag: 2.3.1
    1010Author URI: https://laterpay.net
    1111Plugin URI: https://github.com/laterpay/revenue-generator/
     
    5858
    5959== Changelog ==
     60
     61= 2.3.1 ( 15 Jun 2021 ) =
     62* Fixed issue causing a contribution to be unresponsive after coming back from SSO auth.
    6063
    6164= 2.3.0 ( 26 May 2021 ) =
     
    135138== Upgrade notice ==
    136139
     140= 2.3.1 =
     141Fixed issue causing a contribution to be unresponsive after coming back from SSO auth.
     142
    137143= 2.3.0 =
    138144Refactored welcome screens to React, fixed styling issue in admin.
  • revenue-generator/trunk/revenue-generator.php

    r2537988 r2548212  
    44 * Description: Monetize your blog and content with the Revenue Generator.
    55 * Plugin URI: https://github.com/laterpay/revenue-generator
    6  * Version: 2.3.0
     6 * Version: 2.3.1
    77 * Author: Laterpay
    88 * Text Domain: revenue-generator
     
    1515defined( 'ABSPATH' ) || exit;
    1616
    17 define( 'REVENUE_GENERATOR_VERSION', '2.3.0' );
     17define( 'REVENUE_GENERATOR_VERSION', '2.3.1' );
    1818
    1919if ( ! defined( 'REVENUE_GENERATOR_PLUGIN_FILE' ) ) {
  • revenue-generator/trunk/v2/inc/classes/class-api.php

    r2532857 r2548212  
    8585    public static function get_default_headers() {
    8686        return [
    87             'User-Agent' => sprintf(
     87            'User-Agent'   => sprintf(
    8888                '\[Revenue Generator: v%s] \[Client ID: %s]',
    8989                REVENUE_GENERATOR_VERSION,
    9090                self::$auth->get_client_id()
    9191            ),
     92            'Content-Type' => 'application/json',
    9293        ];
    9394    }
  • revenue-generator/trunk/vendor/autoload.php

    r2537988 r2548212  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitf65b3f465a0dadc6693df8329fb374fc::getLoader();
     7return ComposerAutoloaderIniteaebdac319e540fdeca6da27f11c475b::getLoader();
  • revenue-generator/trunk/vendor/composer/InstalledVersions.php

    r2537988 r2548212  
    2828  'root' =>
    2929  array (
    30     'pretty_version' => '2.3.0',
    31     'version' => '2.3.0.0',
     30    'pretty_version' => '2.3.1',
     31    'version' => '2.3.1.0',
    3232    'aliases' =>
    3333    array (
     
    5858    'firebase/php-jwt' =>
    5959    array (
    60       'pretty_version' => 'v5.2.1',
    61       'version' => '5.2.1.0',
    62       'aliases' =>
    63       array (
    64       ),
    65       'reference' => 'f42c9110abe98dd6cfe9053c49bc86acc70b2d23',
     60      'pretty_version' => 'v5.3.0',
     61      'version' => '5.3.0.0',
     62      'aliases' =>
     63      array (
     64      ),
     65      'reference' => '3c2d70f2e64e2922345e89f2ceae47d2463faae1',
    6666    ),
    6767    'guzzlehttp/guzzle' =>
     
    9494    'laterpay/revenue-generator' =>
    9595    array (
    96       'pretty_version' => '2.3.0',
    97       'version' => '2.3.0.0',
     96      'pretty_version' => '2.3.1',
     97      'version' => '2.3.1.0',
    9898      'aliases' =>
    9999      array (
  • revenue-generator/trunk/vendor/composer/autoload_real.php

    r2537988 r2548212  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitf65b3f465a0dadc6693df8329fb374fc
     5class ComposerAutoloaderIniteaebdac319e540fdeca6da27f11c475b
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInitf65b3f465a0dadc6693df8329fb374fc', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderIniteaebdac319e540fdeca6da27f11c475b', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInitf65b3f465a0dadc6693df8329fb374fc', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderIniteaebdac319e540fdeca6da27f11c475b', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticIniteaebdac319e540fdeca6da27f11c475b::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
     
    5454
    5555        if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc::$files;
     56            $includeFiles = Composer\Autoload\ComposerStaticIniteaebdac319e540fdeca6da27f11c475b::$files;
    5757        } else {
    5858            $includeFiles = require __DIR__ . '/autoload_files.php';
    5959        }
    6060        foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequiref65b3f465a0dadc6693df8329fb374fc($fileIdentifier, $file);
     61            composerRequireeaebdac319e540fdeca6da27f11c475b($fileIdentifier, $file);
    6262        }
    6363
     
    6666}
    6767
    68 function composerRequiref65b3f465a0dadc6693df8329fb374fc($fileIdentifier, $file)
     68function composerRequireeaebdac319e540fdeca6da27f11c475b($fileIdentifier, $file)
    6969{
    7070    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • revenue-generator/trunk/vendor/composer/autoload_static.php

    r2537988 r2548212  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc
     7class ComposerStaticIniteaebdac319e540fdeca6da27f11c475b
    88{
    99    public static $files = array (
     
    222222    {
    223223        return \Closure::bind(function () use ($loader) {
    224             $loader->prefixLengthsPsr4 = ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc::$prefixLengthsPsr4;
    225             $loader->prefixDirsPsr4 = ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc::$prefixDirsPsr4;
    226             $loader->classMap = ComposerStaticInitf65b3f465a0dadc6693df8329fb374fc::$classMap;
     224            $loader->prefixLengthsPsr4 = ComposerStaticIniteaebdac319e540fdeca6da27f11c475b::$prefixLengthsPsr4;
     225            $loader->prefixDirsPsr4 = ComposerStaticIniteaebdac319e540fdeca6da27f11c475b::$prefixDirsPsr4;
     226            $loader->classMap = ComposerStaticIniteaebdac319e540fdeca6da27f11c475b::$classMap;
    227227
    228228        }, null, ClassLoader::class);
  • revenue-generator/trunk/vendor/composer/installed.json

    r2532857 r2548212  
    131131        {
    132132            "name": "firebase/php-jwt",
    133             "version": "v5.2.1",
    134             "version_normalized": "5.2.1.0",
     133            "version": "v5.3.0",
     134            "version_normalized": "5.3.0.0",
    135135            "source": {
    136136                "type": "git",
    137137                "url": "https://github.com/firebase/php-jwt.git",
    138                 "reference": "f42c9110abe98dd6cfe9053c49bc86acc70b2d23"
    139             },
    140             "dist": {
    141                 "type": "zip",
    142                 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/f42c9110abe98dd6cfe9053c49bc86acc70b2d23",
    143                 "reference": "f42c9110abe98dd6cfe9053c49bc86acc70b2d23",
     138                "reference": "3c2d70f2e64e2922345e89f2ceae47d2463faae1"
     139            },
     140            "dist": {
     141                "type": "zip",
     142                "url": "https://api.github.com/repos/firebase/php-jwt/zipball/3c2d70f2e64e2922345e89f2ceae47d2463faae1",
     143                "reference": "3c2d70f2e64e2922345e89f2ceae47d2463faae1",
    144144                "shasum": ""
    145145            },
     
    150150                "phpunit/phpunit": ">=4.8 <=9"
    151151            },
    152             "time": "2021-02-12T00:02:00+00:00",
     152            "time": "2021-05-20T17:37:02+00:00",
    153153            "type": "library",
    154154            "installation-source": "dist",
     
    182182            "support": {
    183183                "issues": "https://github.com/firebase/php-jwt/issues",
    184                 "source": "https://github.com/firebase/php-jwt/tree/v5.2.1"
     184                "source": "https://github.com/firebase/php-jwt/tree/v5.3.0"
    185185            },
    186186            "install-path": "../firebase/php-jwt"
  • revenue-generator/trunk/vendor/composer/installed.php

    r2537988 r2548212  
    22  'root' =>
    33  array (
    4     'pretty_version' => '2.3.0',
    5     'version' => '2.3.0.0',
     4    'pretty_version' => '2.3.1',
     5    'version' => '2.3.1.0',
    66    'aliases' =>
    77    array (
     
    3232    'firebase/php-jwt' =>
    3333    array (
    34       'pretty_version' => 'v5.2.1',
    35       'version' => '5.2.1.0',
     34      'pretty_version' => 'v5.3.0',
     35      'version' => '5.3.0.0',
    3636      'aliases' =>
    3737      array (
    3838      ),
    39       'reference' => 'f42c9110abe98dd6cfe9053c49bc86acc70b2d23',
     39      'reference' => '3c2d70f2e64e2922345e89f2ceae47d2463faae1',
    4040    ),
    4141    'guzzlehttp/guzzle' =>
     
    6868    'laterpay/revenue-generator' =>
    6969    array (
    70       'pretty_version' => '2.3.0',
    71       'version' => '2.3.0.0',
     70      'pretty_version' => '2.3.1',
     71      'version' => '2.3.1.0',
    7272      'aliases' =>
    7373      array (
  • revenue-generator/trunk/vendor/firebase/php-jwt/LICENSE

    r2532857 r2548212  
    1414      with the distribution.
    1515
    16     * Neither the name of Neuman Vong nor the names of other
     16    * Neither the name of the copyright holder nor the names of other
    1717      contributors may be used to endorse or promote products derived
    1818      from this software without specific prior written permission.
  • revenue-generator/trunk/vendor/firebase/php-jwt/README.md

    r2532857 r2548212  
    2020-------
    2121```php
    22 <?php
    23 use \Firebase\JWT\JWT;
     22use Firebase\JWT\JWT;
    2423
    2524$key = "example_key";
     
    5857JWT::$leeway = 60; // $leeway in seconds
    5958$decoded = JWT::decode($jwt, $key, array('HS256'));
    60 
    61 ?>
    6259```
    6360Example with RS256 (openssl)
    6461----------------------------
    6562```php
    66 <?php
    67 use \Firebase\JWT\JWT;
     63use Firebase\JWT\JWT;
    6864
    6965$privateKey = <<<EOD
     
    113109$decoded_array = (array) $decoded;
    114110echo "Decode:\n" . print_r($decoded_array, true) . "\n";
    115 ?>
     111```
     112
     113Example with a passphrase
     114-------------------------
     115
     116```php
     117// Your passphrase
     118$passphrase = '[YOUR_PASSPHRASE]';
     119
     120// Your private key file with passphrase
     121// Can be generated with "ssh-keygen -t rsa -m pem"
     122$privateKeyFile = '/path/to/key-with-passphrase.pem';
     123
     124// Create a private key of type "resource"
     125$privateKey = openssl_pkey_get_private(
     126    file_get_contents($privateKeyFile),
     127    $passphrase
     128);
     129
     130$payload = array(
     131    "iss" => "example.org",
     132    "aud" => "example.com",
     133    "iat" => 1356999524,
     134    "nbf" => 1357000000
     135);
     136
     137$jwt = JWT::encode($payload, $privateKey, 'RS256');
     138echo "Encode:\n" . print_r($jwt, true) . "\n";
     139
     140// Get public key from the private key, or pull from from a file.
     141$publicKey = openssl_pkey_get_details($privateKey)['key'];
     142
     143$decoded = JWT::decode($jwt, $publicKey, array('RS256'));
     144echo "Decode:\n" . print_r((array) $decoded, true) . "\n";
    116145```
    117146
     
    120149
    121150```php
     151use Firebase\JWT\JWK;
     152use Firebase\JWT\JWT;
     153
    122154// Set of keys. The "keys" key is required. For example, the JSON response to
    123155// this endpoint: https://www.gstatic.com/iap/verify/public_key-jwk
  • revenue-generator/trunk/vendor/firebase/php-jwt/src/BeforeValidException.php

    r2532857 r2548212  
    11<?php
     2
    23namespace Firebase\JWT;
    34
  • revenue-generator/trunk/vendor/firebase/php-jwt/src/ExpiredException.php

    r2532857 r2548212  
    11<?php
     2
    23namespace Firebase\JWT;
    34
  • revenue-generator/trunk/vendor/firebase/php-jwt/src/JWK.php

    r2532857 r2548212  
    8383        switch ($jwk['kty']) {
    8484            case 'RSA':
    85                 if (\array_key_exists('d', $jwk)) {
     85                if (!empty($jwk['d'])) {
    8686                    throw new UnexpectedValueException('RSA private keys are not supported');
    8787                }
  • revenue-generator/trunk/vendor/firebase/php-jwt/src/JWT.php

    r2532857 r2548212  
    33namespace Firebase\JWT;
    44
    5 use \DomainException;
    6 use \InvalidArgumentException;
    7 use \UnexpectedValueException;
    8 use \DateTime;
     5use DomainException;
     6use InvalidArgumentException;
     7use UnexpectedValueException;
     8use DateTime;
    99
    1010/**
     
    4343
    4444    public static $supported_algs = array(
     45        'ES384' => array('openssl', 'SHA384'),
    4546        'ES256' => array('openssl', 'SHA256'),
    4647        'HS256' => array('hash_hmac', 'SHA256'),
     
    5960     *                                                  If the algorithm used is asymmetric, this is the public key
    6061     * @param array                     $allowed_algs   List of supported verification algorithms
    61      *                                                  Supported algorithms are 'ES256', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', and 'RS512'
     62     *                                                  Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
     63     *                                                  'HS512', 'RS256', 'RS384', and 'RS512'
    6264     *
    6365     * @return object The JWT's payload as a PHP object
    6466     *
     67     * @throws InvalidArgumentException     Provided JWT was empty
    6568     * @throws UnexpectedValueException     Provided JWT was invalid
    6669     * @throws SignatureInvalidException    Provided JWT was invalid because the signature verification failed
     
    102105            throw new UnexpectedValueException('Algorithm not allowed');
    103106        }
    104         if ($header->alg === 'ES256') {
    105             // OpenSSL expects an ASN.1 DER sequence for ES256 signatures
     107        if ($header->alg === 'ES256' || $header->alg === 'ES384') {
     108            // OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures
    106109            $sig = self::signatureToDER($sig);
    107110        }
     
    151154     * Converts and signs a PHP object or array into a JWT string.
    152155     *
    153      * @param object|array  $payload    PHP object or array
    154      * @param string        $key        The secret key.
    155      *                                  If the algorithm used is asymmetric, this is the private key
    156      * @param string        $alg        The signing algorithm.
    157      *                                  Supported algorithms are 'ES256', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', and 'RS512'
    158      * @param mixed         $keyId
    159      * @param array         $head       An array with header elements to attach
     156     * @param object|array      $payload    PHP object or array
     157     * @param string|resource   $key        The secret key.
     158     *                                      If the algorithm used is asymmetric, this is the private key
     159     * @param string            $alg        The signing algorithm.
     160     *                                      Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
     161     *                                      'HS512', 'RS256', 'RS384', and 'RS512'
     162     * @param mixed             $keyId
     163     * @param array             $head       An array with header elements to attach
    160164     *
    161165     * @return string A signed JWT
     
    190194     * @param string|resource   $key    The secret key
    191195     * @param string            $alg    The signing algorithm.
    192      *                                  Supported algorithms are 'ES256', 'HS256', 'HS384', 'HS512', 'RS256', 'RS384', and 'RS512'
     196     *                                  Supported algorithms are 'ES384','ES256', 'HS256', 'HS384',
     197     *                                  'HS512', 'RS256', 'RS384', and 'RS512'
    193198     *
    194199     * @return string An encrypted message
     
    213218                    if ($alg === 'ES256') {
    214219                        $signature = self::signatureFromDER($signature, 256);
     220                    }
     221                    if ($alg === 'ES384') {
     222                        $signature = self::signatureFromDER($signature, 384);
    215223                    }
    216224                    return $signature;
  • revenue-generator/trunk/vendor/firebase/php-jwt/src/SignatureInvalidException.php

    r2532857 r2548212  
    11<?php
     2
    23namespace Firebase\JWT;
    34
Note: See TracChangeset for help on using the changeset viewer.