PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 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 All 142 releases
← All changes | assets/js/dist/blocks/course-title.js +37 -22 4.3.8 → 4.4.10 View file →
@@ -1,4 +1,4 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ "use strict";
3 3 /******/ var __webpack_modules__ = ({
4 4
@@ -171,13 +171,13 @@
171 171 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
172 172 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__);
173 173 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/data */ "@wordpress/data");
174 174 /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__);
175 -/**
176 - * Check if the block can be loaded in the current template.
177 - *
178 - * @since 4.2.8.4
179 - * @version 1.0.0
175 +/**
176 + * Check if the block can be loaded in the current template.
177 + *
178 + * @since 4.2.8.4
179 + * @version 1.0.0
180 180 */
181 181
182 182
183 183 let currentPostIdOld = null;
@@ -318,19 +318,19 @@
318 318
319 319 /******/ });
320 320 /************************************************************************/
321 321 /******/ // The module cache
322 -/******/ var __webpack_module_cache__ = {};
322 +/******/ const __webpack_module_cache__ = {};
323 323 /******/
324 324 /******/ // The require function
325 325 /******/ function __webpack_require__(moduleId) {
326 326 /******/ // Check if module is in cache
327 -/******/ var cachedModule = __webpack_module_cache__[moduleId];
327 +/******/ const cachedModule = __webpack_module_cache__[moduleId];
328 328 /******/ if (cachedModule !== undefined) {
329 329 /******/ return cachedModule.exports;
330 330 /******/ }
331 331 /******/ // Create a new module (and put it into the cache)
332 -/******/ var module = __webpack_module_cache__[moduleId] = {
332 +/******/ const module = __webpack_module_cache__[moduleId] = {
333 333 /******/ // no module.id needed
334 334 /******/ // no module.loaded needed
335 335 /******/ exports: {}
336 336 /******/ };
@@ -337,9 +337,9 @@
337 337 /******/
338 338 /******/ // Execute the module function
339 339 /******/ if (!(moduleId in __webpack_modules__)) {
340 340 /******/ delete __webpack_module_cache__[moduleId];
341 -/******/ var e = new Error("Cannot find module '" + moduleId + "'");
341 +/******/ const e = new Error("Cannot find module '" + moduleId + "'");
342 342 /******/ e.code = 'MODULE_NOT_FOUND';
343 343 /******/ throw e;
344 344 /******/ }
345 345 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
@@ -352,9 +352,9 @@
352 352 /******/ /* webpack/runtime/compat get default export */
353 353 /******/ (() => {
354 354 /******/ // getDefaultExport function for compatibility with non-harmony modules
355 355 /******/ __webpack_require__.n = (module) => {
356 -/******/ var getter = module && module.__esModule ?
356 +/******/ const getter = module && module.__esModule ?
357 357 /******/ () => (module['default']) :
358 358 /******/ () => (module);
359 359 /******/ __webpack_require__.d(getter, { a: getter });
360 360 /******/ return getter;
@@ -362,14 +362,29 @@
362 362 /******/ })();
363 363 /******/
364 364 /******/ /* webpack/runtime/define property getters */
365 365 /******/ (() => {
366 -/******/ // define getter functions for harmony exports
366 +/******/ // define getter/value functions for harmony exports
367 367 /******/ __webpack_require__.d = (exports, definition) => {
368 -/******/ for(var key in definition) {
369 -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
370 -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
368 +/******/ if(Array.isArray(definition)) {
369 +/******/ var i = 0;
370 +/******/ while(i < definition.length) {
371 +/******/ var key = definition[i++];
372 +/******/ var binding = definition[i++];
373 +/******/ if(!__webpack_require__.o(exports, key)) {
374 +/******/ if(binding === 0) {
375 +/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
376 +/******/ } else {
377 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
378 +/******/ }
379 +/******/ } else if(binding === 0) { i++; }
371 380 /******/ }
381 +/******/ } else {
382 +/******/ for(var key in definition) {
383 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
384 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
385 +/******/ }
386 +/******/ }
372 387 /******/ }
373 388 /******/ };
374 389 /******/ })();
375 390 /******/
@@ -374,9 +389,9 @@
374 389 /******/ })();
375 390 /******/
376 391 /******/ /* webpack/runtime/hasOwnProperty shorthand */
377 392 /******/ (() => {
378 -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
393 +/******/ __webpack_require__.o = (obj, prop) => (Object.hasOwn(obj, prop))
379 394 /******/ })();
380 395 /******/
381 396 /******/ /* webpack/runtime/make namespace object */
382 397 /******/ (() => {
@@ -381,9 +396,9 @@
381 396 /******/ /* webpack/runtime/make namespace object */
382 397 /******/ (() => {
383 398 /******/ // define __esModule on exports
384 399 /******/ __webpack_require__.r = (exports) => {
385 -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
400 +/******/ if(Symbol.toStringTag) {
386 401 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
387 402 /******/ }
388 403 /******/ Object.defineProperty(exports, '__esModule', { value: true });
389 404 /******/ };
@@ -389,9 +404,9 @@
389 404 /******/ };
390 405 /******/ })();
391 406 /******/
392 407 /************************************************************************/
393 -var __webpack_exports__ = {};
408 +let __webpack_exports__ = {};
394 409 // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
395 410 (() => {
396 411 /*!*************************************************************************!*\
397 412 !*** ./assets/src/apps/js/blocks/course-elements/course-title/index.js ***!
@@ -403,10 +418,10 @@
403 418 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
404 419 /* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__);
405 420 /* harmony import */ var _utilBlock_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utilBlock.js */ "./assets/src/apps/js/blocks/utilBlock.js");
406 421 /* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/title.js");
407 -/**
408 - * Register block course title.
422 +/**
423 + * Register block course title.
409 424 */
410 425
411 426
412 427
@@ -414,11 +429,11 @@
414 429
415 430
416 431 const templatesName = ['learnpress/learnpress//single-lp_course', 'learnpress/learnpress//single-lp_course-offline'];
417 432
418 -/**
419 - * Check if the block can load in the template editor: single-lp_course.
420 - * if it is editing on this template, set ancestor to null
433 +/**
434 + * Check if the block can load in the template editor: single-lp_course.
435 + * if it is editing on this template, set ancestor to null
421 436 */
422 437 (0,_utilBlock_js__WEBPACK_IMPORTED_MODULE_4__.checkTemplatesCanLoadBlock)(templatesName, _block_json__WEBPACK_IMPORTED_MODULE_2__, metadataNew => {
423 438 (0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_3__.registerBlockType)(metadataNew.name, {
424 439 ...metadataNew,