Plugin Directory

Changeset 3425884


Ignore:
Timestamp:
12/23/2025 06:46:02 AM (3 months ago)
Author:
saffiretech
Message:

Updated the code as per the wordpress guidelines

Location:
upsells-for-learndash
Files:
51 added
5 edited

Legend:

Unmodified
Added
Removed
  • upsells-for-learndash/trunk/include/ldups-upsells-course-desc-metabox.php

    r3383290 r3425884  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit;
     5}
    26
    37if ( ! function_exists( 'sft_upfbt_course_meta_callback' ) && ! function_exists( 'sft_upfbt_free_course_meta_callback' ) ) {
  • upsells-for-learndash/trunk/include/ldups-upsells-metabox.php

    r3383290 r3425884  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit;
     5}
     6
    27/**
    38 * Get upsell course name and id in metabox.
  • upsells-for-learndash/trunk/include/ldups-upsells-widget.php

    r3383290 r3425884  
    11<?php
     2
     3if ( ! defined( 'ABSPATH' ) ) {
     4    exit;
     5}
     6
    27add_action( 'learndash-course-after', 'ldups_upsells_show_learndash_course' );
    38
  • upsells-for-learndash/trunk/readme.txt

    r3383290 r3425884  
    22Contributors: SaffireTech
    33Tags: upsells, courses, bundles
    4 LD Requires at least: 3.6.0.3
    5 LD tested up to: 4.25.3
     4LD Requires at least: 3.6
     5LD tested up to: 4.25
    66Requires at least: 5.3
    7 Tested up to: 6.8.3
     7Tested up to: 6.8
    88Requires PHP: 7.4
    9 Stable tag: 1.0.8
     9Stable tag: 1.1.0
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    6767== Changelog ==
    6868
     69= 1.1.0 2025-12-23 =
     70
     71* Fix - Code improvements aligned with WordPress guidelines.
     72
    6973= 1.0.8 2025-10-23 =
    7074
  • upsells-for-learndash/trunk/upsells-for-learndash.php

    r3383290 r3425884  
    77 * Author:      SaffireTech
    88 * Text Domain: ldups-upsells
     9 * Requires Plugins: sfwd-lms
    910 * Domain Path: /languages
    10  * Stable Tag: 1.0.8
     11 * Stable Tag: 1.1.0
    1112 * Requires at least: 5.3
    12  * Tested up to: 6.8.3
     13 * Tested up to: 6.8
    1314 * Requires PHP: 7.4
    14  * LD Requires at least: 3.6.0.3
    15  * LD tested up to: 4.25.1
     15 * LD Requires at least: 3.6
     16 * LD tested up to: 4.25
    1617 * License:     GPLv3
    1718 * License URI: URI: https://www.gnu.org/licenses/gpl-3.0.html
    18  * Version:     1.0.8
     19 * Version:     1.1.0
    1920 */
    2021
     
    9495        wp_enqueue_style( 'ldups-upsells-course-css', plugins_url( 'assets/css/ldups-upsells-courses.css', __FILE__ ), array(), '1.0.0' );
    9596        wp_enqueue_style( 'ldups-upsells-select2-css', plugins_url( 'assets/css/select2.min.css', __FILE__ ), array(), '1.1.0' );
    96         wp_enqueue_style( 'ldups-upsells-slick-css', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css', array(), '1.1.0' );
    97         wp_enqueue_style( 'ldups-upsells-group-css', esc_url( 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css' ), array(), '1.0.0' );
     97        wp_enqueue_style( 'ldups-upsells-slick-css', plugins_url( 'assets/css/slick.min.css', __FILE__ ), array(), '1.1.0' );
     98        wp_enqueue_style( 'ldups-upsells-group-css', plugins_url( 'assets/css/font-awesome.min.css', __FILE__ ), array(), '1.0.1' );
    9899        wp_enqueue_script( 'ldups-upsells-course-js', plugins_url( 'assets/js/ldups-upsells-courses.js', __FILE__ ), array( 'jquery' ), '1.0.0', false );
    99         wp_enqueue_script( 'ldups-upsells-slick-js', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js', array( 'jquery' ), '1.0.0', false );
     100        wp_enqueue_script( 'ldups-upsells-slick-js', plugins_url( 'assets/js/slick.min.js', __FILE__ ), array( 'jquery' ), '1.0.0', false );
    100101        wp_enqueue_script( 'ldups_sweet_alert_script', plugins_url( 'assets/js/sweetalert2.all.min.js', __FILE__ ), array(), '10.10.1', false );
    101         load_plugin_textdomain( 'ldups-upsells', false, basename( dirname( __FILE__ ) ) . '/languages/' );
    102102        wp_localize_script(
    103103            'ldups-upsells-course-js',
Note: See TracChangeset for help on using the changeset viewer.