Plugin Directory

Changeset 3122022


Ignore:
Timestamp:
07/19/2024 11:58:55 AM (18 months ago)
Author:
nappssolutions
Message:

Release 1.0.26

Location:
napps
Files:
377 added
7 edited

Legend:

Unmodified
Added
Removed
  • napps/trunk/napps.php

    r3008810 r3122022  
    33 * Plugin Name: NAPPS - Mobile app builder
    44 * Description: Plugin to complement the napps E-commerce solution. More on https://napps.io
    5  * Version:     1.0.25
     5 * Version:     1.0.26
    66 * Text Domain: napps
    77 * Author:      nappssolutions
     
    3636define( 'NAPPS_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
    3737define( 'NAPPS_PLUGIN_FILE',  __FILE__ );
    38 define( 'NAPPS_VERSION', '1.0.25' );
     38define( 'NAPPS_VERSION', '1.0.26' );
    3939define( 'NAPPS_REST_PREFIX', 'napps/v1' );
    4040
  • napps/trunk/readme.txt

    r3008810 r3122022  
    33Tags: ecommerce, mobile app, create app, build app, online shop, android app, ios app, woocoomerce app builder, napps, e-commerce, mobile, native app
    44Requires at least: 4.7
    5 Tested up to: 6.4
    6 Stable tag: 1.0.25
    7 Requires PHP: 7.3
     5Tested up to: 9.1
     6Stable tag: 1.0.26
     7Requires PHP: 7.4
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6464= Minimum Requirements =
    6565
    66 * PHP 7.3 or greater
     66* PHP 7.4 or greater
    6767* Wordpress 4.7.0 or greater
    6868* WooCommerce 3.5.0 or greater
     
    7575
    7676== Changelog ==
     77
     78= 1.0.26 =
     79
     80* New - Support new wc version
    7781
    7882= 1.0.25 =
  • napps/trunk/src/Controllers/ProxyController.php

    r3008810 r3122022  
    2020    private function getCurrentUrl() {
    2121        $protocol = is_ssl() ? 'https://' : 'http://';
    22         return ($protocol) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     22
     23        $host = null;
     24        if(isset($_SERVER['HTTP_HOST'])) {
     25            $host = $_SERVER['HTTP_HOST'];
     26        } else {
     27            $host = parse_url(home_url(), PHP_URL_HOST);
     28        }
     29
     30        if(!$host) {
     31            return '';
     32        }
     33       
     34        return ($protocol) . $host . $_SERVER['REQUEST_URI'];
    2335    }
    2436
  • napps/trunk/src/Modules/Woocommerce/Webhooks.php

    r2995141 r3122022  
    22
    33namespace NAPPS\Modules\Woocommerce;
     4use Automattic\WooCommerce\Utilities\RestApiUtil;
    45
    56class Webhooks
     
    376377    // Get payload for category
    377378    public function getDataForCategory($categoryId) {
    378         $data = wc()->api->get_endpoint_data( "/wc/v3/products/categories/{$categoryId}" );
     379        $data = wc_get_container()->get( RestApiUtil::class )->get_endpoint_data( "/wc/v3/products/categories/{$categoryId}" );
    379380        if(!is_array($data)) {
    380381            return $categoryId;
  • napps/trunk/vendor/composer/InstalledVersions.php

    r2962449 r3122022  
    267267            // only require the installed.php file if this file is loaded from its dumped location,
    268268            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    269             if (substr(__DIR__, -8, 1) !== 'C' && is_file(__DIR__ . '/installed.php')) {
     269            if (substr(__DIR__, -8, 1) !== 'C') {
    270270                self::$installed = include __DIR__ . '/installed.php';
    271271            } else {
     
    342342            // only require the installed.php file if this file is loaded from its dumped location,
    343343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    344             if (substr(__DIR__, -8, 1) !== 'C' && is_file(__DIR__ . '/installed.php')) {
     344            if (substr(__DIR__, -8, 1) !== 'C') {
    345345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
    346346                $required = require __DIR__ . '/installed.php';
  • napps/trunk/vendor/composer/LICENSE

    r2962449 r3122022  
     1
    12Copyright (c) Nils Adermann, Jordi Boggiano
    23
     
    1819OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    1920THE SOFTWARE.
     21
  • napps/trunk/vendor/composer/installed.php

    r3008810 r3122022  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '747826341763b3b833cc4c07a1f4407277594fc8',
     6        'reference' => '789407c2be93c5a51c93c019a16da97415da79ce',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    5959            'pretty_version' => 'dev-main',
    6060            'version' => 'dev-main',
    61             'reference' => '747826341763b3b833cc4c07a1f4407277594fc8',
     61            'reference' => '789407c2be93c5a51c93c019a16da97415da79ce',
    6262            'type' => 'wordpress-plugin',
    6363            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.