Plugin Directory

Changeset 3221673


Ignore:
Timestamp:
01/13/2025 03:51:25 PM (15 months ago)
Author:
openedx
Message:

Release 2.0.7

Location:
openedx-commerce
Files:
231 added
7 edited

Legend:

Unmodified
Added
Removed
  • openedx-commerce/trunk/CHANGELOG.md

    r3162372 r3221673  
     1## v2.0.7 - 2024-11-05
     2
     3### [2.0.7](https://github.com/openedx/openedx-wordpress-ecommerce/compare/v2.0.6...v2.0.7) (2024-11-05)
     4
     5#### Bug Fixes
     6
     7* fix: admin enqueue order (#102)
     8
     9### Documentation
     10
     11* docs: add info about tutor-contrib-wordpress plugin (#84)
     12
    113## v2.0.6 - 2024-10-03
    214
  • openedx-commerce/trunk/README.txt

    r3162372 r3221673  
    33Tags: openedx, open edx, ecommerce, lms, courses
    44Requires at least: 6.3
    5 Tested up to: 6.6
     5Tested up to: 6.7
    66Requires PHP: 8.0
    7 Stable tag: 2.0.6
     7Stable tag: 2.0.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • openedx-commerce/trunk/admin/class-openedx-commerce-admin.php

    r3162372 r3221673  
    112112         * class.
    113113         */
     114
     115        wp_enqueue_style(
     116            $this->plugin_name,
     117            plugin_dir_url( __FILE__ ) . '../admin/css/class-openedx-commerce-admin.css',
     118            array(),
     119            $this->version,
     120            'all'
     121        );
    114122    }
    115123
     
    134142         * class.
    135143         */
     144
     145        wp_register_script( 'product-type-script', plugin_dir_url( __FILE__ ) . '../admin/js/product-type.js', array(), $this->version, true );
     146        wp_enqueue_script( 'product-type-script' );
     147
     148        wp_register_script( 'course-id-restriction-script', plugin_dir_url( __FILE__ ) . '../admin/js/course-id-restriction.js', array(), $this->version, true );
     149        wp_enqueue_script( 'course-id-restriction-script' );
    136150    }
    137151
     
    166180     * @return object              Post type class object
    167181     */
    168     public function register_post_type( $post_type = '', $plural = '', $single = '', $description = '', array $options ) {
     182    public function register_post_type( $post_type = '', $plural = '', $single = '', $description = '', array $options = array() ) {
    169183
    170184        if ( ! $post_type || ! $plural || ! $single ) {
     
    192206        $single = '',
    193207        $description = '',
    194         array $options
     208        array $options = array()
    195209    ) {
    196210        return new Openedx_Commerce_Post_Type( $post_type, $plural, $single, $description, $options );
  • openedx-commerce/trunk/includes/class-openedx-commerce.php

    r3162372 r3221673  
    7777        $this->define_public_hooks();
    7878        $this->define_plugin_settings_hooks();
    79         $this->define_enqueue_scripts();
    8079    }
    8180
     
    218217        $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' );
    219218        $this->loader->add_filter( 'gettext', $this, 'openedx_plugin_custom_post_message', 10, 3 );
    220         $this->loader->wp_enqueue_style(
    221             $this->plugin_name,
    222             plugin_dir_url( __FILE__ ) . '../admin/css/class-openedx-commerce-admin.css',
    223             array(),
    224             $this->version,
    225             'all'
    226         );
    227219
    228220        // Redirection from enrollment to order and enrollment to order.
     
    266258
    267259    /**
    268      * Register all the hooks related to custom scripts for specific functionalities.
    269      *
    270      * @since    1.11.0
    271      * @access   private
    272      */
    273     private function define_enqueue_scripts() {
    274         wp_register_script( 'product-type-script', plugin_dir_url( __FILE__ ) . '../admin/js/product-type.js', array(), $this->get_version(), true );
    275         wp_enqueue_script( 'product-type-script' );
    276 
    277         wp_register_script( 'course-id-restriction-script', plugin_dir_url( __FILE__ ) . '../admin/js/course-id-restriction.js', array(), $this->get_version(), true );
    278         wp_enqueue_script( 'course-id-restriction-script' );
    279     }
    280 
    281     /**
    282260     * Define the plugin settings hooks.
    283261     *
  • openedx-commerce/trunk/openedx-commerce.php

    r3162372 r3221673  
    44 * Plugin URI:        https://github.com/openedx/openedx-wordpress-ecommerce
    55 * Description:       Easily connect your WooCommerce store to Open edX.
    6  * Version:           2.0.6
     6 * Version:           2.0.7
    77 * Author:            Open edX Community
    88 * Author URI:        https://github.com/openedx/openedx-wordpress-ecommerce
     
    3333 * Rename this for your plugin and update it as you release new versions.
    3434 */
    35 define( 'OPENEDX_COMMERCE_VERSION', '2.0.6' );
     35define( 'OPENEDX_COMMERCE_VERSION', '2.0.7' );
    3636
    3737/**
  • openedx-commerce/trunk/vendor/composer/InstalledVersions.php

    r3162372 r3221673  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @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 */
    332333                    $required = require $vendorDir.'/composer/installed.php';
    333                     $installed[] = self::$installedByVendor[$vendorDir] = $required;
    334                     if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    335                         self::$installed = $installed[count($installed) - 1];
     334                    self::$installedByVendor[$vendorDir] = $required;
     335                    $installed[] = $required;
     336                    if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
     337                        self::$installed = $required;
     338                        $copiedLocalDir = true;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • openedx-commerce/trunk/vendor/composer/installed.php

    r3162372 r3221673  
    22    'root' => array(
    33        'name' => 'php-actions/example-phpunit',
    4         'pretty_version' => 'v2.0.6',
    5         'version' => '2.0.6.0',
    6         'reference' => '7264c3652ae54bb856b12ae57d89351592290008',
     4        'pretty_version' => 'dev-main',
     5        'version' => 'dev-main',
     6        'reference' => '0f3bb9488ee4acdef4320faa4ec7bcbe84b1447a',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    3939        ),
    4040        'php-actions/example-phpunit' => array(
    41             'pretty_version' => 'v2.0.6',
    42             'version' => '2.0.6.0',
    43             'reference' => '7264c3652ae54bb856b12ae57d89351592290008',
     41            'pretty_version' => 'dev-main',
     42            'version' => 'dev-main',
     43            'reference' => '0f3bb9488ee4acdef4320faa4ec7bcbe84b1447a',
    4444            'type' => 'library',
    4545            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.