Plugin Directory

Changeset 2789173


Ignore:
Timestamp:
09/23/2022 08:34:33 AM (3 years ago)
Author:
marioshtika
Message:

Release 4.2.2

Location:
apppresser/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apppresser/trunk/apppresser.php

    r2755150 r2789173  
    66Text Domain: apppresser
    77Domain Path: /languages
    8 Version: 4.2.1
     8Version: 4.2.2
    99Author: AppPresser Team
    1010Author URI: http://apppresser.com
     
    3333class AppPresser {
    3434
    35     const VERSION           = '4.2.1';
     35    const VERSION           = '4.2.2';
    3636    const SETTINGS_NAME     = 'appp_settings';
    3737    public static $settings = 'false';
  • apppresser/trunk/inc/AppPresser_User.php

    r2387202 r2789173  
    7575
    7676        if (class_exists('Jwt_Auth')) {
    77             return JWT::encode($token, $secretKey);
     77            return JWT::encode(
     78                apply_filters('jwt_auth_token_before_sign', $token, $user),
     79                $secretKey,
     80                apply_filters('jwt_auth_algorithm', 'HS256')
     81            );
    7882        } else {
    7983            return null;
  • apppresser/trunk/inc/AppPresser_WPAPI_Mods.php

    r2695596 r2789173  
    738738            require_once(ABSPATH . 'wp-admin/includes/plugin.php');
    739739        }
     740        // Plugins
    740741        $plugins = array();
    741742        $plugins[]['apppresser'] = AppPresser::VERSION;
     
    752753        $plugins[]['appsocial'] = $this->getAppSocialData();
    753754        $plugins[]['apppresser-camera'] = $this->getAppCameraData();
     755        $plugins[]['apppresser-bridge'] = $this->getAppBridgeData();
    754756        $response['plugins'] = $plugins;
     757        // Themes
     758        $themes = array();
     759        $themes[]['ion-theme'] = $this->getIonThemeData();
     760        $response['themes'] = $themes;
    755761        $response['success'] = $this->verifySiteSlugAppId($request);
    756762
     
    828834        if (class_exists('AppPresser_Camera')) {
    829835            return AppPresser_Camera::VERSION;
     836        }
     837
     838        return false;
     839    }
     840
     841    private function getAppBridgeData()
     842    {
     843        if (class_exists('AppPresserBridge')) {
     844            return AppPresserBridge::VERSION;
     845        }
     846
     847        return false;
     848    }
     849
     850    private function getIonThemeData()
     851    {
     852        $ionTheme = wp_get_theme('ap3-ion-theme');
     853        if ($ionTheme) {
     854            return $ionTheme->Version;
    830855        }
    831856
  • apppresser/trunk/readme.txt

    r2755150 r2789173  
    55Requires at least: 4.7.0
    66Tested up to: 6.0
    7 Stable tag: 4.2.1
     7Stable tag: 4.2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747
    4848== Changelog ==
     49
     50= 4.2.2 =
     51* Support latest version of JWT plugin
     52* Add AppPresser Bridge and IonTheme to the myappp verifier
    4953
    5054= 4.2.1 =
Note: See TracChangeset for help on using the changeset viewer.