Plugin Directory

Changeset 2849906


Ignore:
Timestamp:
01/17/2023 04:33:04 PM (3 years ago)
Author:
vendorfuel
Message:

Fixed issue with asset enqueuing.

Location:
vendorfuel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendorfuel/trunk/README.txt

    r2849883 r2849906  
    44Requires at least: 4.7
    55Tested up to: 6.1
    6 Stable tag: 8.10.0
     6Stable tag: 8.10.1
    77Requires PHP: 7.4
    88License: GPLv3 or later
     
    124124== Changelog ==
    125125
     126= 8.10.1 =
     127* Fixed issue with asset enqueuing.
     128
    126129= 8.10.0 =
    127130* Added ClearSale settings and resend option for admin orders.
  • vendorfuel/trunk/includes/class-vendorfuel-enqueue.php

    r2849883 r2849906  
    1717    public function plugin() {
    1818        $admin_asset_file = include(plugin_dir_path(__DIR__) . 'build/legacy.asset.php');
     19
    1920        wp_enqueue_script(
    2021            'vendorfuel-admin',
     
    9293     */
    9394    public function frontend() {
    94         $file_path = plugin_dir_path(__DIR__) . 'vendorfuel.php';
    95         $plugin_data = get_file_data($file_path, array(
    96             'Version' => 'Version'
    97         ));
    98         $version = $plugin_data['Version'];
    99 
    10095        $public_asset_file = include(plugin_dir_path(__DIR__) . 'build/public.asset.php');
     96
    10197        wp_enqueue_script(
    10298            'vendorfuel-public',
    10399            plugin_dir_url(__DIR__) . 'build/public.js',
    104100            $public_asset_file['dependencies'],
    105             $version,
     101            $public_asset_file['version'],
    106102            true
    107103        );
     
    111107            plugin_dir_url(__DIR__) . 'build/public.css',
    112108            array(),
    113             $version,
     109            $public_asset_file['version'],
    114110        );
    115111
  • vendorfuel/trunk/vendorfuel.php

    r2849883 r2849906  
    55 * Plugin URI:          https://vendorfuel.com/
    66 * Description:         VendorFuel is a next-generation shopping cart that includes everything you need to start selling online.
    7  * Version:             8.10.0
     7 * Version:             8.10.1
    88 * Requires at least:   6.0
    99 * Requires PHP:        7.4
Note: See TracChangeset for help on using the changeset viewer.