Plugin Directory

Changeset 2348177


Ignore:
Timestamp:
07/29/2020 07:06:17 AM (5 years ago)
Author:
solarissmoke
Message:

Version 1.10.3

Location:
disable-comments/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • disable-comments/trunk/assets/disable-comments.js

    r2126229 r2348177  
    33wp.domReady(function () {
    44  if (wp.blocks) {
    5     wp.blocks.getBlockTypes().forEach(function (block) {
    6       if (disable_comments.disabled_blocks.includes(block.name)) {
    7         wp.blocks.unregisterBlockType(block.name);
    8       }
    9     });
     5    wp.blocks.unregisterBlockType('core/latest-comments');
    106  }
    117});
  • disable-comments/trunk/assets/disable-comments.js.map

    r2126229 r2348177  
    1 {"version":3,"sources":["../src/disable-comments.js"],"names":["wp","domReady","blocks","getBlockTypes","forEach","block","disable_comments","disabled_blocks","includes","name","unregisterBlockType"],"mappings":";;AAAAA,EAAE,CAACC,QAAH,CAAY,YAAM;AACjB,MAAGD,EAAE,CAACE,MAAN,EAAc;AACbF,IAAAA,EAAE,CAACE,MAAH,CAAUC,aAAV,GAA0BC,OAA1B,CAAkC,UAACC,KAAD,EAAW;AAC5C,UAAIC,gBAAgB,CAACC,eAAjB,CAAiCC,QAAjC,CAA0CH,KAAK,CAACI,IAAhD,CAAJ,EAA2D;AAC1DT,QAAAA,EAAE,CAACE,MAAH,CAAUQ,mBAAV,CAA8BL,KAAK,CAACI,IAApC;AACA;AACD,KAJD;AAKA;AACD,CARD","sourcesContent":["wp.domReady(() => {\n\tif(wp.blocks) {\n\t\twp.blocks.getBlockTypes().forEach((block) => {\n\t\t\tif (disable_comments.disabled_blocks.includes(block.name)) {\n\t\t\t\twp.blocks.unregisterBlockType(block.name);\n\t\t\t}\n\t\t});\n\t}\n});\n"],"file":"disable-comments.js"}
     1{"version":3,"sources":["../src/disable-comments.js"],"names":["wp","domReady","blocks","unregisterBlockType"],"mappings":";;AAAAA,EAAE,CAACC,QAAH,CAAY,YAAM;AACjB,MAAGD,EAAE,CAACE,MAAN,EAAc;AACbF,IAAAA,EAAE,CAACE,MAAH,CAAUC,mBAAV,CAA8B,sBAA9B;AACA;AACD,CAJD","sourcesContent":["wp.domReady(() => {\n\tif(wp.blocks) {\n\t\twp.blocks.unregisterBlockType('core/latest-comments');\n\t}\n});\n"],"file":"disable-comments.js"}
  • disable-comments/trunk/disable-comments.php

    r2295896 r2348177  
    44 * Plugin URI: https://wordpress.org/plugins/disable-comments/
    55 * Description: Allows administrators to globally disable comments on their site. Comments can be disabled according to post type.
    6  * Version: 1.10.2
     6 * Version: 1.10.3
    77 * Author: Samir Shah
    88 * Author URI: http://www.rayofsolaris.net/
  • disable-comments/trunk/src/disable-comments.js

    r2126229 r2348177  
    11wp.domReady(() => {
    22    if(wp.blocks) {
    3         wp.blocks.getBlockTypes().forEach((block) => {
    4             if (disable_comments.disabled_blocks.includes(block.name)) {
    5                 wp.blocks.unregisterBlockType(block.name);
    6             }
    7         });
     3        wp.blocks.unregisterBlockType('core/latest-comments');
    84    }
    95});
Note: See TracChangeset for help on using the changeset viewer.