Plugin Directory

Changeset 2462130


Ignore:
Timestamp:
01/25/2021 10:11:41 AM (5 years ago)
Author:
audienceplayer
Message:
  • released version 1.11.0
Location:
audienceplayer
Files:
6 added
50 edited
1 copied

Legend:

Unmodified
Added
Removed
  • audienceplayer/tags/1.11.0/audienceplayer.php

    r2453874 r2462130  
    99Description: AudiencePlayer integration
    1010Author: AudiencePlayer
    11 Version: 1.10.7
     11Version: 1.11.0
    1212Author URI: https://www.audienceplayer.com
    1313Text Domain: audienceplayer
  • audienceplayer/tags/1.11.0/composer.json

    r2430930 r2462130  
    2020        "ext-curl": "*",
    2121        "ext-json": "*",
    22         "audienceplayer/audienceplayer-api-client-php": "1.*"
     22        "audienceplayer/audienceplayer-api-client-php": "1.0.2"
    2323    },
    2424    "autoload": {
  • audienceplayer/tags/1.11.0/composer.lock

    r2446851 r2462130  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c4c357659378228e255399befa34627f",
     7    "content-hash": "9b2336a9ad7b1e7096578f72f0f1e4e9",
    88    "packages": [
    99        {
    1010            "name": "audienceplayer/audienceplayer-api-client-php",
    11             "version": "v1.0.1",
     11            "version": "v1.0.2",
    1212            "source": {
    1313                "type": "git",
    1414                "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
    15                 "reference": "106385d9ced0b461caa61388a7cc528df334374e"
     15                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6"
    1616            },
    1717            "dist": {
    1818                "type": "zip",
    19                 "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/106385d9ced0b461caa61388a7cc528df334374e",
    20                 "reference": "106385d9ced0b461caa61388a7cc528df334374e",
     19                "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     20                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
    2121                "shasum": ""
    2222            },
     
    5656                "video"
    5757            ],
    58             "time": "2020-12-27T22:28:39+00:00"
     58            "support": {
     59                "issues": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/issues",
     60                "source": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/tree/v1.0.2"
     61            },
     62            "time": "2021-01-25T09:55:03+00:00"
    5963        }
    6064    ],
     
    7175    },
    7276    "platform-dev": [],
    73     "plugin-api-version": "1.1.0"
     77    "plugin-api-version": "2.0.0"
    7478}
  • audienceplayer/tags/1.11.0/readme.txt

    r2453874 r2462130  
    11=== AudiencePlayer ===
    22Contributors: audienceplayer
    3 Stable tag: 1.10.7
     3Stable tag: 1.11.0
    44Tested up to: 5.5
    55Requires at least: 5.5
  • audienceplayer/tags/1.11.0/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Config/Constants.php

    r2453874 r2462130  
    3939
    4040        // Main plugin version number here and in main plugin file header are automatically overwritten in gulp-build script
    41         PLUGIN_VERSION = '1.10.7',
     41        PLUGIN_VERSION = '1.11.0',
    4242
    4343        // DB migration version number is maintained here
     
    101101            'postal_code' => 'string',
    102102            'weight' => 'float',
     103            'is_newsletter_opt_in' => 'int',
    103104        ],
    104105
  • audienceplayer/tags/1.11.0/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/BootstrapTrait.php

    r2453874 r2462130  
    493493
    494494            // "user_register": Runs immediately after a new user registration has been successfully completed.
    495             // After this event, given Wordpress user is automatically logged in and is synchronised with AudiencePlayer.
     495            // After this event, given Wordpress user is synchronised with AudiencePlayer.
    496496            // HIGH PRIO, fires before system events
    497497            //
    498498            // Warning: the 'user_register' is also called when a Wordpress user is created via \wp_create_user and \wp_insert_user
    499             // which in turn is used by UserSyncTrait->createWordpressUser (which has protection against undesired auto-login)
     499            // which in turn is used by UserSyncTrait->createWordpressUser which has protection against undesired auto-login.
     500            // N.B, 3rd party might have set an auto-login on this event.
    500501            \add_action('user_register', function ($wordpressUserId) use ($self) {
    501502
  • audienceplayer/tags/1.11.0/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/Helper.php

    r2453874 r2462130  
    292292                        $ret[$key] = ['value' => strval($value), 'type' => 'enum'];
    293293                    }
     294                } elseif ($key === 'is_newsletter_opt_in') {
     295                    $ret[$key] = ['value' => (boolval(is_string($value) ? trim(preg_replace('/^(false)$/i', '0', $value)) : $value) ? 'true' : 'false'), 'type' => 'bool'];
    294296                } elseif ($key === 'phone' && $this->validatePhoneNumberFormat(strval($value))) {
    295297                    $ret[$key] = strval($value);
  • audienceplayer/tags/1.11.0/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/UserSyncTrait.php

    r2453874 r2462130  
    150150                    // Fetch Wordpress user metas and update remote AudiencePlayer user
    151151                    foreach (Constants::USER_METADATA_SYNC_KEYS as $metaKey => $typeCast) {
    152                         if ($value = trim($this->fetchWordpressUserProperty($wordpressUserObject, $metaKey))) {
     152                        $value = trim($this->fetchWordpressUserProperty($wordpressUserObject, $metaKey));
     153                        if (!is_null($value)) {
    153154                            $metadata[$metaKey] = $value;
    154155                        }
     
    778779                $ret = intval($wordpressUserObject->userMeta['audienceplayer_user_id'][0] ?? 0);
    779780                break;
     781            case 'is_newsletter_opt_in':
     782                $ret = intval($wordpressUserObject->userMeta['is_newsletter_opt_in'][0] ?? 0);
     783                break;
    780784            case 'email':
    781785                $ret = strval($wordpressUserObject->user->data->user_email ?? '');
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/LICENSE

    r2418252 r2462130  
    1111   documentation and/or other materials provided with the distribution.
    1212
    13 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     13THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1414EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1515WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/AudiencePlayerApiClient.php

    r2446851 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/AutoLoader.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Exceptions/CustomException.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/ApiResponse.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/Globals.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/Helper.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperation.php

    r2427363 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperationMutation.php

    r2430930 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperationQuery.php

    r2430930 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLService.php

    r2446851 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     
    465465                case 'boolean':
    466466                case 'bool':
    467                     $value = $key . ':' . ($value ? 'true' : 'false');
     467                    $value = $key . ':' . (boolval(is_string($value) ? trim(preg_replace('/^(false)$/i', '0', $value)) : $value) ? 'true' : 'false');
    468468                    break;
    469469
  • audienceplayer/tags/1.11.0/vendor/audienceplayer/audienceplayer-api-client-php/tests/Unit/GraphQLServiceTest.php

    r2418252 r2462130  
    455455    public function parseGraphQLArgsFromArrayDataProvider()
    456456    {
     457        // $args, $withParentheses, $expectedResult
    457458        return [
    458459            [[], true, '',],
     
    468469            [['lorem' => ['value' => 'ipsum', 'type' => 'bool']], true, '(lorem:true)'],
    469470            [['lorem' => ['value' => 'ipsum', 'type' => 'boolean']], true, '(lorem:true)'],
     471            [['lorem' => ['value' => 'true', 'type' => 'boolean']], true, '(lorem:true)'],
     472            [['lorem' => ['value' => '1', 'type' => 'boolean']], true, '(lorem:true)'],
     473            [['lorem' => ['value' => 1, 'type' => 'boolean']], true, '(lorem:true)'],
     474            [['lorem' => ['value' => 'false', 'type' => 'boolean']], true, '(lorem:false)'],
     475            [['lorem' => ['value' => ' 0 ', 'type' => 'boolean']], true, '(lorem:false)'],
     476            [['lorem' => ['value' => 0, 'type' => 'boolean']], true, '(lorem:false)'],
     477            [['lorem' => ['value' => '', 'type' => 'boolean']], true, '(lorem:false)'],
    470478            [['lorem' => ['value' => 'ipsum', 'type' => 'null']], true, '(lorem:null)'],
    471479            [['lorem' => ['value' => 'ipsum', 'type' => 'null']], true, '(lorem:null)'],
  • audienceplayer/tags/1.11.0/vendor/composer/ClassLoader.php

    r2418252 r2462130  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    http://www.php-fig.org/psr/psr-0/
    41  * @see    http://www.php-fig.org/psr/psr-4/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
  • audienceplayer/tags/1.11.0/vendor/composer/autoload_classmap.php

    r2418252 r2462130  
    77
    88return array(
     9    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    910);
  • audienceplayer/tags/1.11.0/vendor/composer/autoload_real.php

    r2418252 r2462130  
    2323        }
    2424
     25        require __DIR__ . '/platform_check.php';
     26
    2527        spl_autoload_register(array('ComposerAutoloaderInit7de9e553492571d986479fabf2313dac', 'loadClassLoader'), true, true);
    2628        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     
    2931        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    3032        if ($useStaticLoader) {
    31             require_once __DIR__ . '/autoload_static.php';
     33            require __DIR__ . '/autoload_static.php';
    3234
    3335            call_user_func(\Composer\Autoload\ComposerStaticInit7de9e553492571d986479fabf2313dac::getInitializer($loader));
  • audienceplayer/tags/1.11.0/vendor/composer/autoload_static.php

    r2418252 r2462130  
    2121    );
    2222
     23    public static $classMap = array (
     24        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
     25    );
     26
    2327    public static function getInitializer(ClassLoader $loader)
    2428    {
     
    2630            $loader->prefixLengthsPsr4 = ComposerStaticInit7de9e553492571d986479fabf2313dac::$prefixLengthsPsr4;
    2731            $loader->prefixDirsPsr4 = ComposerStaticInit7de9e553492571d986479fabf2313dac::$prefixDirsPsr4;
     32            $loader->classMap = ComposerStaticInit7de9e553492571d986479fabf2313dac::$classMap;
    2833
    2934        }, null, ClassLoader::class);
  • audienceplayer/tags/1.11.0/vendor/composer/installed.json

    r2446851 r2462130  
    1 [
    2     {
    3         "name": "audienceplayer/audienceplayer-api-client-php",
    4         "version": "v1.0.1",
    5         "version_normalized": "1.0.1.0",
    6         "source": {
    7             "type": "git",
    8             "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
    9             "reference": "106385d9ced0b461caa61388a7cc528df334374e"
    10         },
    11         "dist": {
    12             "type": "zip",
    13             "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/106385d9ced0b461caa61388a7cc528df334374e",
    14             "reference": "106385d9ced0b461caa61388a7cc528df334374e",
    15             "shasum": ""
    16         },
    17         "require": {
    18             "ext-curl": "*",
    19             "ext-json": "*",
    20             "php": ">=7.1"
    21         },
    22         "require-dev": {
    23             "codedungeon/phpunit-result-printer": "^0.29.3",
    24             "johnkary/phpunit-speedtrap": "^3.2",
    25             "phpunit/phpunit": "^8",
    26             "symfony/var-dumper": "^5.1"
    27         },
    28         "time": "2020-12-27T22:28:39+00:00",
    29         "type": "library",
    30         "installation-source": "dist",
    31         "autoload": {
    32             "psr-4": {
    33                 "AudiencePlayer\\": "src/AudiencePlayer/"
    34             }
    35         },
    36         "notification-url": "https://packagist.org/downloads/",
    37         "license": [
    38             "BSD-2-Clause"
    39         ],
    40         "authors": [
    41             {
    42                 "name": "Audienceplayer",
    43                 "email": "support@audienceplayer.com"
    44             }
    45         ],
    46         "description": "AudiencePlayer API client library for PHP.",
    47         "homepage": "https://github.com/audienceplayer/audienceplayer-api-client-php",
    48         "keywords": [
    49             "API-Client",
    50             "audienceplayer",
    51             "platform",
    52             "video"
    53         ]
    54     }
    55 ]
     1{
     2    "packages": [
     3        {
     4            "name": "audienceplayer/audienceplayer-api-client-php",
     5            "version": "v1.0.2",
     6            "version_normalized": "1.0.2.0",
     7            "source": {
     8                "type": "git",
     9                "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
     10                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     15                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     16                "shasum": ""
     17            },
     18            "require": {
     19                "ext-curl": "*",
     20                "ext-json": "*",
     21                "php": ">=7.1"
     22            },
     23            "require-dev": {
     24                "codedungeon/phpunit-result-printer": "^0.29.3",
     25                "johnkary/phpunit-speedtrap": "^3.2",
     26                "phpunit/phpunit": "^8",
     27                "symfony/var-dumper": "^5.1"
     28            },
     29            "time": "2021-01-25T09:55:03+00:00",
     30            "type": "library",
     31            "installation-source": "dist",
     32            "autoload": {
     33                "psr-4": {
     34                    "AudiencePlayer\\": "src/AudiencePlayer/"
     35                }
     36            },
     37            "notification-url": "https://packagist.org/downloads/",
     38            "license": [
     39                "BSD-2-Clause"
     40            ],
     41            "authors": [
     42                {
     43                    "name": "Audienceplayer",
     44                    "email": "support@audienceplayer.com"
     45                }
     46            ],
     47            "description": "AudiencePlayer API client library for PHP.",
     48            "homepage": "https://github.com/audienceplayer/audienceplayer-api-client-php",
     49            "keywords": [
     50                "API-Client",
     51                "audienceplayer",
     52                "platform",
     53                "video"
     54            ],
     55            "support": {
     56                "issues": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/issues",
     57                "source": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/tree/v1.0.2"
     58            },
     59            "install-path": "../audienceplayer/audienceplayer-api-client-php"
     60        }
     61    ],
     62    "dev": true,
     63    "dev-package-names": []
     64}
  • audienceplayer/trunk/audienceplayer.php

    r2453874 r2462130  
    99Description: AudiencePlayer integration
    1010Author: AudiencePlayer
    11 Version: 1.10.7
     11Version: 1.11.0
    1212Author URI: https://www.audienceplayer.com
    1313Text Domain: audienceplayer
  • audienceplayer/trunk/composer.json

    r2430930 r2462130  
    2020        "ext-curl": "*",
    2121        "ext-json": "*",
    22         "audienceplayer/audienceplayer-api-client-php": "1.*"
     22        "audienceplayer/audienceplayer-api-client-php": "1.0.2"
    2323    },
    2424    "autoload": {
  • audienceplayer/trunk/composer.lock

    r2446851 r2462130  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "c4c357659378228e255399befa34627f",
     7    "content-hash": "9b2336a9ad7b1e7096578f72f0f1e4e9",
    88    "packages": [
    99        {
    1010            "name": "audienceplayer/audienceplayer-api-client-php",
    11             "version": "v1.0.1",
     11            "version": "v1.0.2",
    1212            "source": {
    1313                "type": "git",
    1414                "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
    15                 "reference": "106385d9ced0b461caa61388a7cc528df334374e"
     15                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6"
    1616            },
    1717            "dist": {
    1818                "type": "zip",
    19                 "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/106385d9ced0b461caa61388a7cc528df334374e",
    20                 "reference": "106385d9ced0b461caa61388a7cc528df334374e",
     19                "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     20                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
    2121                "shasum": ""
    2222            },
     
    5656                "video"
    5757            ],
    58             "time": "2020-12-27T22:28:39+00:00"
     58            "support": {
     59                "issues": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/issues",
     60                "source": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/tree/v1.0.2"
     61            },
     62            "time": "2021-01-25T09:55:03+00:00"
    5963        }
    6064    ],
     
    7175    },
    7276    "platform-dev": [],
    73     "plugin-api-version": "1.1.0"
     77    "plugin-api-version": "2.0.0"
    7478}
  • audienceplayer/trunk/readme.txt

    r2453874 r2462130  
    11=== AudiencePlayer ===
    22Contributors: audienceplayer
    3 Stable tag: 1.10.7
     3Stable tag: 1.11.0
    44Tested up to: 5.5
    55Requires at least: 5.5
  • audienceplayer/trunk/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Config/Constants.php

    r2453874 r2462130  
    3939
    4040        // Main plugin version number here and in main plugin file header are automatically overwritten in gulp-build script
    41         PLUGIN_VERSION = '1.10.7',
     41        PLUGIN_VERSION = '1.11.0',
    4242
    4343        // DB migration version number is maintained here
     
    101101            'postal_code' => 'string',
    102102            'weight' => 'float',
     103            'is_newsletter_opt_in' => 'int',
    103104        ],
    104105
  • audienceplayer/trunk/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/BootstrapTrait.php

    r2453874 r2462130  
    493493
    494494            // "user_register": Runs immediately after a new user registration has been successfully completed.
    495             // After this event, given Wordpress user is automatically logged in and is synchronised with AudiencePlayer.
     495            // After this event, given Wordpress user is synchronised with AudiencePlayer.
    496496            // HIGH PRIO, fires before system events
    497497            //
    498498            // Warning: the 'user_register' is also called when a Wordpress user is created via \wp_create_user and \wp_insert_user
    499             // which in turn is used by UserSyncTrait->createWordpressUser (which has protection against undesired auto-login)
     499            // which in turn is used by UserSyncTrait->createWordpressUser which has protection against undesired auto-login.
     500            // N.B, 3rd party might have set an auto-login on this event.
    500501            \add_action('user_register', function ($wordpressUserId) use ($self) {
    501502
  • audienceplayer/trunk/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/Helper.php

    r2453874 r2462130  
    292292                        $ret[$key] = ['value' => strval($value), 'type' => 'enum'];
    293293                    }
     294                } elseif ($key === 'is_newsletter_opt_in') {
     295                    $ret[$key] = ['value' => (boolval(is_string($value) ? trim(preg_replace('/^(false)$/i', '0', $value)) : $value) ? 'true' : 'false'), 'type' => 'bool'];
    294296                } elseif ($key === 'phone' && $this->validatePhoneNumberFormat(strval($value))) {
    295297                    $ret[$key] = strval($value);
  • audienceplayer/trunk/src/AudiencePlayer/AudiencePlayerWordpressPlugin/Resources/UserSyncTrait.php

    r2453874 r2462130  
    150150                    // Fetch Wordpress user metas and update remote AudiencePlayer user
    151151                    foreach (Constants::USER_METADATA_SYNC_KEYS as $metaKey => $typeCast) {
    152                         if ($value = trim($this->fetchWordpressUserProperty($wordpressUserObject, $metaKey))) {
     152                        $value = trim($this->fetchWordpressUserProperty($wordpressUserObject, $metaKey));
     153                        if (!is_null($value)) {
    153154                            $metadata[$metaKey] = $value;
    154155                        }
     
    778779                $ret = intval($wordpressUserObject->userMeta['audienceplayer_user_id'][0] ?? 0);
    779780                break;
     781            case 'is_newsletter_opt_in':
     782                $ret = intval($wordpressUserObject->userMeta['is_newsletter_opt_in'][0] ?? 0);
     783                break;
    780784            case 'email':
    781785                $ret = strval($wordpressUserObject->user->data->user_email ?? '');
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/LICENSE

    r2418252 r2462130  
    1111   documentation and/or other materials provided with the distribution.
    1212
    13 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     13THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1414EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1515WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/AudiencePlayerApiClient.php

    r2446851 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/AutoLoader.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Exceptions/CustomException.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/ApiResponse.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/Globals.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Resources/Helper.php

    r2418252 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperation.php

    r2427363 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperationMutation.php

    r2430930 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLOperationQuery.php

    r2430930 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/src/AudiencePlayer/AudiencePlayerApiClient/Services/GraphQLService.php

    r2446851 r2462130  
    1313 *    documentation and/or other materials provided with the distribution.
    1414 *
    15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
     15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY
    1616 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    1717 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     
    465465                case 'boolean':
    466466                case 'bool':
    467                     $value = $key . ':' . ($value ? 'true' : 'false');
     467                    $value = $key . ':' . (boolval(is_string($value) ? trim(preg_replace('/^(false)$/i', '0', $value)) : $value) ? 'true' : 'false');
    468468                    break;
    469469
  • audienceplayer/trunk/vendor/audienceplayer/audienceplayer-api-client-php/tests/Unit/GraphQLServiceTest.php

    r2418252 r2462130  
    455455    public function parseGraphQLArgsFromArrayDataProvider()
    456456    {
     457        // $args, $withParentheses, $expectedResult
    457458        return [
    458459            [[], true, '',],
     
    468469            [['lorem' => ['value' => 'ipsum', 'type' => 'bool']], true, '(lorem:true)'],
    469470            [['lorem' => ['value' => 'ipsum', 'type' => 'boolean']], true, '(lorem:true)'],
     471            [['lorem' => ['value' => 'true', 'type' => 'boolean']], true, '(lorem:true)'],
     472            [['lorem' => ['value' => '1', 'type' => 'boolean']], true, '(lorem:true)'],
     473            [['lorem' => ['value' => 1, 'type' => 'boolean']], true, '(lorem:true)'],
     474            [['lorem' => ['value' => 'false', 'type' => 'boolean']], true, '(lorem:false)'],
     475            [['lorem' => ['value' => ' 0 ', 'type' => 'boolean']], true, '(lorem:false)'],
     476            [['lorem' => ['value' => 0, 'type' => 'boolean']], true, '(lorem:false)'],
     477            [['lorem' => ['value' => '', 'type' => 'boolean']], true, '(lorem:false)'],
    470478            [['lorem' => ['value' => 'ipsum', 'type' => 'null']], true, '(lorem:null)'],
    471479            [['lorem' => ['value' => 'ipsum', 'type' => 'null']], true, '(lorem:null)'],
  • audienceplayer/trunk/vendor/composer/ClassLoader.php

    r2418252 r2462130  
    3838 * @author Fabien Potencier <fabien@symfony.com>
    3939 * @author Jordi Boggiano <j.boggiano@seld.be>
    40  * @see    http://www.php-fig.org/psr/psr-0/
    41  * @see    http://www.php-fig.org/psr/psr-4/
     40 * @see    https://www.php-fig.org/psr/psr-0/
     41 * @see    https://www.php-fig.org/psr/psr-4/
    4242 */
    4343class ClassLoader
  • audienceplayer/trunk/vendor/composer/autoload_classmap.php

    r2418252 r2462130  
    77
    88return array(
     9    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    910);
  • audienceplayer/trunk/vendor/composer/autoload_real.php

    r2418252 r2462130  
    2323        }
    2424
     25        require __DIR__ . '/platform_check.php';
     26
    2527        spl_autoload_register(array('ComposerAutoloaderInit7de9e553492571d986479fabf2313dac', 'loadClassLoader'), true, true);
    2628        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     
    2931        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    3032        if ($useStaticLoader) {
    31             require_once __DIR__ . '/autoload_static.php';
     33            require __DIR__ . '/autoload_static.php';
    3234
    3335            call_user_func(\Composer\Autoload\ComposerStaticInit7de9e553492571d986479fabf2313dac::getInitializer($loader));
  • audienceplayer/trunk/vendor/composer/autoload_static.php

    r2418252 r2462130  
    2121    );
    2222
     23    public static $classMap = array (
     24        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
     25    );
     26
    2327    public static function getInitializer(ClassLoader $loader)
    2428    {
     
    2630            $loader->prefixLengthsPsr4 = ComposerStaticInit7de9e553492571d986479fabf2313dac::$prefixLengthsPsr4;
    2731            $loader->prefixDirsPsr4 = ComposerStaticInit7de9e553492571d986479fabf2313dac::$prefixDirsPsr4;
     32            $loader->classMap = ComposerStaticInit7de9e553492571d986479fabf2313dac::$classMap;
    2833
    2934        }, null, ClassLoader::class);
  • audienceplayer/trunk/vendor/composer/installed.json

    r2446851 r2462130  
    1 [
    2     {
    3         "name": "audienceplayer/audienceplayer-api-client-php",
    4         "version": "v1.0.1",
    5         "version_normalized": "1.0.1.0",
    6         "source": {
    7             "type": "git",
    8             "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
    9             "reference": "106385d9ced0b461caa61388a7cc528df334374e"
    10         },
    11         "dist": {
    12             "type": "zip",
    13             "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/106385d9ced0b461caa61388a7cc528df334374e",
    14             "reference": "106385d9ced0b461caa61388a7cc528df334374e",
    15             "shasum": ""
    16         },
    17         "require": {
    18             "ext-curl": "*",
    19             "ext-json": "*",
    20             "php": ">=7.1"
    21         },
    22         "require-dev": {
    23             "codedungeon/phpunit-result-printer": "^0.29.3",
    24             "johnkary/phpunit-speedtrap": "^3.2",
    25             "phpunit/phpunit": "^8",
    26             "symfony/var-dumper": "^5.1"
    27         },
    28         "time": "2020-12-27T22:28:39+00:00",
    29         "type": "library",
    30         "installation-source": "dist",
    31         "autoload": {
    32             "psr-4": {
    33                 "AudiencePlayer\\": "src/AudiencePlayer/"
    34             }
    35         },
    36         "notification-url": "https://packagist.org/downloads/",
    37         "license": [
    38             "BSD-2-Clause"
    39         ],
    40         "authors": [
    41             {
    42                 "name": "Audienceplayer",
    43                 "email": "support@audienceplayer.com"
    44             }
    45         ],
    46         "description": "AudiencePlayer API client library for PHP.",
    47         "homepage": "https://github.com/audienceplayer/audienceplayer-api-client-php",
    48         "keywords": [
    49             "API-Client",
    50             "audienceplayer",
    51             "platform",
    52             "video"
    53         ]
    54     }
    55 ]
     1{
     2    "packages": [
     3        {
     4            "name": "audienceplayer/audienceplayer-api-client-php",
     5            "version": "v1.0.2",
     6            "version_normalized": "1.0.2.0",
     7            "source": {
     8                "type": "git",
     9                "url": "https://github.com/AudiencePlayer/audienceplayer-api-client-php.git",
     10                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/AudiencePlayer/audienceplayer-api-client-php/zipball/b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     15                "reference": "b63b0a5ef2a297f1263be6eb6467edb2cbc031f6",
     16                "shasum": ""
     17            },
     18            "require": {
     19                "ext-curl": "*",
     20                "ext-json": "*",
     21                "php": ">=7.1"
     22            },
     23            "require-dev": {
     24                "codedungeon/phpunit-result-printer": "^0.29.3",
     25                "johnkary/phpunit-speedtrap": "^3.2",
     26                "phpunit/phpunit": "^8",
     27                "symfony/var-dumper": "^5.1"
     28            },
     29            "time": "2021-01-25T09:55:03+00:00",
     30            "type": "library",
     31            "installation-source": "dist",
     32            "autoload": {
     33                "psr-4": {
     34                    "AudiencePlayer\\": "src/AudiencePlayer/"
     35                }
     36            },
     37            "notification-url": "https://packagist.org/downloads/",
     38            "license": [
     39                "BSD-2-Clause"
     40            ],
     41            "authors": [
     42                {
     43                    "name": "Audienceplayer",
     44                    "email": "support@audienceplayer.com"
     45                }
     46            ],
     47            "description": "AudiencePlayer API client library for PHP.",
     48            "homepage": "https://github.com/audienceplayer/audienceplayer-api-client-php",
     49            "keywords": [
     50                "API-Client",
     51                "audienceplayer",
     52                "platform",
     53                "video"
     54            ],
     55            "support": {
     56                "issues": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/issues",
     57                "source": "https://github.com/AudiencePlayer/audienceplayer-api-client-php/tree/v1.0.2"
     58            },
     59            "install-path": "../audienceplayer/audienceplayer-api-client-php"
     60        }
     61    ],
     62    "dev": true,
     63    "dev-package-names": []
     64}
Note: See TracChangeset for help on using the changeset viewer.