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/class-lp-asset-key.php +17 -1 4.2.04.4.8 View file →
@@ -32,8 +32,15 @@
32 32 * @var int
33 33 */
34 34 public $_in_footer = 0;
35 35 /**
36 + * Strategy load defer/async support from WP 6.3
37 + *
38 + * @var array
39 + * @since 4.2.5.5
40 + */
41 + public $_strategy = [];
42 + /**
36 43 * Value 1 for run wp_register_script(), 0 for run wp_enqueue_script()
37 44 *
38 45 * @var int
39 46 */
@@ -65,9 +72,17 @@
65 72 * @param string[] $screens .
66 73 * @param int $only_register .
67 74 * @param int $in_footer .
68 75 */
69 - public function __construct( string $url = '', array $deps = array(), array $screens = array(), int $only_register = 1, int $in_footer = 0, string $version = '' ) {
76 + public function __construct(
77 + string $url = '',
78 + array $deps = array(),
79 + array $screens = array(),
80 + int $only_register = 1,
81 + int $in_footer = 0,
82 + string $version = '',
83 + array $strategy = []
84 + ) {
70 85 $this->_url = $url;
71 86 $this->_deps = $deps;
72 87 $this->_in_footer = $in_footer;
73 88 $this->_only_register = $only_register;
@@ -72,8 +87,9 @@
72 87 $this->_in_footer = $in_footer;
73 88 $this->_only_register = $only_register;
74 89 $this->_screens = $screens;
75 90 $this->_version = $version;
91 + $this->_strategy = $strategy;
76 92 }
77 93
78 94 /**
79 95 * Set pages not call js.