Plugin Directory

Changeset 3282700


Ignore:
Timestamp:
04/27/2025 11:25:38 AM (9 months ago)
Author:
virgildia
Message:

Update legacy warning message.

Location:
carousel-block
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • carousel-block/tags/2.0.0/build/components/legacy-warning.asset.php

    r3282662 r3282700  
    1 <?php return array('dependencies' => array('wp-data', 'wp-i18n'), 'version' => '1af858c0efd7eac53bc0');
     1<?php return array('dependencies' => array('wp-data', 'wp-i18n'), 'version' => 'fac5109873cabc5547b1');
  • carousel-block/tags/2.0.0/build/components/legacy-warning.js

    r3282662 r3282700  
    1 (()=>{"use strict";const e=window.wp.data,t=window.wp.i18n,i="cb-legacy-carousel-warning";let s=!1,c=null;(0,e.subscribe)((()=>{const o=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));o!==c&&(c=o,!o||s||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,t.__)("This content uses a legacy Carousel Slider block. Transform it to Version 2 from the block's toolbar (first button). Note: The design and HTML will change; block settings remain.","cb"),{id:i,isDismissible:!0,actions:[{label:(0,t.__)("Open settings for more details","cb"),url:"/wp-admin/options-general.php?page=cb-carousel-settings",variant:"link"}]}),s=!0),!o&&s&&((0,e.dispatch)("core/notices").removeNotice(i),s=!1))}))})();
     1(()=>{"use strict";const e=window.wp.data,t=window.wp.i18n,c="cb-legacy-carousel-warning";let i=!1,s=null;(0,e.subscribe)((()=>{const o=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));o!==s&&(s=o,!o||i||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,t.__)("This content uses a legacy Carousel Slider block. Transform it to Version 2 from the block's toolbar (first button). Note: The design and HTML will change; block settings remain.","cb"),{id:c,isDismissible:!0,actions:[{label:(0,t.__)("Open settings to hide legacy blocks","cb"),url:"/wp-admin/options-general.php?page=cb-carousel-settings",variant:"link"}]}),i=!0),!o&&i&&((0,e.dispatch)("core/notices").removeNotice(c),i=!1))}))})();
  • carousel-block/trunk/build/components/legacy-warning.asset.php

    r3282662 r3282700  
    1 <?php return array('dependencies' => array('wp-data', 'wp-i18n'), 'version' => '1af858c0efd7eac53bc0');
     1<?php return array('dependencies' => array('wp-data', 'wp-i18n'), 'version' => 'fac5109873cabc5547b1');
  • carousel-block/trunk/build/components/legacy-warning.js

    r3282662 r3282700  
    1 (()=>{"use strict";const e=window.wp.data,t=window.wp.i18n,i="cb-legacy-carousel-warning";let s=!1,c=null;(0,e.subscribe)((()=>{const o=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));o!==c&&(c=o,!o||s||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,t.__)("This content uses a legacy Carousel Slider block. Transform it to Version 2 from the block's toolbar (first button). Note: The design and HTML will change; block settings remain.","cb"),{id:i,isDismissible:!0,actions:[{label:(0,t.__)("Open settings for more details","cb"),url:"/wp-admin/options-general.php?page=cb-carousel-settings",variant:"link"}]}),s=!0),!o&&s&&((0,e.dispatch)("core/notices").removeNotice(i),s=!1))}))})();
     1(()=>{"use strict";const e=window.wp.data,t=window.wp.i18n,c="cb-legacy-carousel-warning";let i=!1,s=null;(0,e.subscribe)((()=>{const o=(0,e.select)("core/block-editor").getBlocks().some((e=>"cb/carousel"===e.name));o!==s&&(s=o,!o||i||"undefined"!=typeof cbLegacySettings&&cbLegacySettings.hideLegacyNotice||((0,e.dispatch)("core/notices").createNotice("warning",(0,t.__)("This content uses a legacy Carousel Slider block. Transform it to Version 2 from the block's toolbar (first button). Note: The design and HTML will change; block settings remain.","cb"),{id:c,isDismissible:!0,actions:[{label:(0,t.__)("Open settings to hide legacy blocks","cb"),url:"/wp-admin/options-general.php?page=cb-carousel-settings",variant:"link"}]}),i=!0),!o&&i&&((0,e.dispatch)("core/notices").removeNotice(c),i=!1))}))})();
Note: See TracChangeset for help on using the changeset viewer.