{"id":137217,"date":"2021-03-07T00:08:02","date_gmt":"2021-03-07T00:08:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/unregister-broken-patterns\/"},"modified":"2021-03-12T22:04:48","modified_gmt":"2021-03-12T22:04:48","slug":"unregister-broken-patterns","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/unregister-broken-patterns\/","author":4238663,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"5.7.15","requires":"5.6","requires_php":"5.6","requires_plugins":"","header_name":"Unregister Broken Patterns","header_author":"jeremyfelt","header_description":"Unregister block patterns that contain unavailable blocks.","assets_banners_color":"","last_updated":"2021-03-12 22:04:48","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/jeremyfelt\/unregister-broken-patterns\/","header_author_uri":"https:\/\/jeremyfelt.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":419,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2494545,"resolution":"128x128","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2494545,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[189590,197049,148857,4121],"plugin_category":[],"plugin_contributors":[80671],"plugin_business_model":[],"class_list":["post-137217","plugin","type-plugin","status-closed","hentry","plugin_tags-block-patterns","plugin_tags-block-types","plugin_tags-block-editor","plugin_tags-blocks","plugin_contributors-jeremyfelt","plugin_committers-jeremyfelt"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/unregister-broken-patterns\/assets\/icon.svg?rev=2494545","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/unregister-broken-patterns.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>It is possible to restrict block types from being used in the editor with the <code>allowed_block_types<\/code> filter. It is also possible\nto unregister block types entirely.<\/p>\n\n<p>By default, the pattern library in the block editor will continue to to show patterns that contain unavailable blocks. If someone\nattempts to insert one of these patterns, nothing happens.<\/p>\n\n<p>This plugin attempts to remove any patterns with unavailable blocks. It will currently only operate with block types and patterns\nthat are registered via PHP. This plugin will not be necessary once <a href=\"https:\/\/github.com\/WordPress\/gutenberg\/issues\/23275\">Gutenberg issue 23275<\/a>\nand others like it are resolved with (very likely) a better long-term solution that can account for PHP and JavaScript.<\/p>\n\n<h3>What about JavaScript?<\/h3>\n\n<p>If you have ideas on how to approach this in JavaScript, feel free to comment on the open issue!<\/p>","raw_excerpt":"Unregister block patterns that contain block types not available to the editor.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/137217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=137217"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jeremyfelt"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=137217"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=137217"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=137217"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=137217"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=137217"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=137217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}