PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/class-lp-admin-assets.php +34 -10 4.4.64.4.8 View file →
@@ -501,16 +501,15 @@
501 501 array( 'learnpress_page_learn-press-tools' ),
502 502 0,
503 503 1
504 504 ),*/
505 - /*
506 - 'lp-setup' => new LP_Asset_Key(
507 - $this->url( 'js/dist/admin/pages/setup' . self::$_min_assets . '.js' ),
508 - array( 'jquery', 'dropdown-pages' ),
505 + 'lp-setup-wizard' => new LP_Asset_Key(
506 + $this->url( 'dist/js/admin/setup-wizard' . self::$_min_assets . '.js' ),
507 + [],
509 508 array( 'lp-page-setup' ),
510 509 0,
511 510 1
512 - ),*/
511 + ),
513 512 /*
514 513 'learn-press-statistic' => new LP_Asset_Key(
515 514 $this->url( 'js/dist/admin/pages/statistic' . self::$_min_assets . '.js' ),
516 515 array( 'jquery', 'jquery-ui-datepicker', 'chart' ),
@@ -594,16 +593,25 @@
594 593 '',
595 594 array( 'strategy' => 'async' )
596 595 ),
597 596 'lp-admin-tools' => new LP_Asset_Key(
598 - $this->url( 'js/dist/admin/admin-tools' . self::$_min_assets . '.js' ),
597 + $this->url( 'dist/js/admin/admin-tools' . self::$_min_assets . '.js' ),
599 598 array(),
600 599 array( 'learnpress_page_learn-press-tools' ),
601 600 0,
602 - 1,
601 + 0,
603 602 '',
604 603 array( 'strategy' => 'defer' )
605 604 ),
605 + 'lp-themes' => new LP_Asset_Key(
606 + $this->url( 'dist/js/admin/lp-themes' . self::$_min_assets . '.js' ),
607 + array(),
608 + array( 'learnpress_page_learn-press-themes' ),
609 + 0,
610 + 0,
611 + '',
612 + array( 'strategy' => 'async' )
613 + ),
606 614 'lp-admin-statistic' => new LP_Asset_Key(
607 615 $this->url( 'js/dist/admin/admin-statistic' . self::$_min_assets . '.js' ),
608 616 array( 'lp-load-ajax' ),
609 617 array( 'learnpress_page_learn-press-statistics' ),
@@ -683,8 +691,15 @@
683 691 array(),
684 692 array( 'learnpress_page_learn-press-help-center' ),
685 693 0
686 694 ),
695 + 'lp-themes' => new LP_Asset_Key(
696 + $this->url( 'css/admin/themes' . $is_rtl . self::$_min_assets . '.css' ),
697 + array(),
698 + array( 'learnpress_page_learn-press-themes' ),
699 + 0,
700 + 0
701 + ),
687 702 'lp-edit-curriculum' => new LP_Asset_Key(
688 703 $this->url( 'css/edit-curriculum' . $is_rtl . self::$_min_assets . '.css' ),
689 704 array(),
690 705 array(),
@@ -701,14 +716,14 @@
701 716 array(),
702 717 array(),
703 718 1
704 719 ),
705 - 'learn-press-statistic' => new LP_Asset_Key(
720 + /*'learn-press-statistic' => new LP_Asset_Key(
706 721 LP_CSS_URL . 'admin/statistic' . $is_rtl . self::$_min_assets . '.css',
707 722 array(),
708 723 array( 'learners_page_learn-press-statistics' ),
709 724 0
710 - ),
725 + ),*/
711 726 'lp-tom-select' => new LP_Asset_Key(
712 727 $this->url( 'src/css/vendor/tom-select.min.css' ),
713 728 array(),
714 729 array(),
@@ -713,8 +728,14 @@
713 728 array(),
714 729 array(),
715 730 0
716 731 ),
732 + 'lp-setup-wizard' => new LP_Asset_Key(
733 + $this->url( 'css/admin/setup-wizard' . $is_rtl . self::$_min_assets . '.css' ),
734 + array(),
735 + array(),
736 + 1
737 + ),
717 738 )
718 739 );
719 740 }
720 741
@@ -724,9 +745,9 @@
724 745 public function load_scripts() {
725 746 $screen_id = LP_Admin::instance()->get_screen_id();
726 747
727 748 if ( empty( $screen_id ) ) {
728 - return;
749 + $screen_id = '';
729 750 }
730 751
731 752 // wp_enqueue_media(); //Todo: tungnx need check why call for that using.
732 753 $this->handle_js( $screen_id );
@@ -820,8 +841,11 @@
820 841 )
821 842 );
822 843 }*/
823 844
845 + /**
846 + * Instance
847 + */
824 848 public static function instance() {
825 849 if ( ! is_admin() ) {
826 850 return null;
827 851 }