Skip to content

Commit bda6ab2

Browse files
authored
Merge pull request #16 from BeAPI/merge/release-1.1.2-main
chore: release 1.1.2
2 parents 9543e69 + 6c7c80d commit bda6ab2

11 files changed

Lines changed: 1408 additions & 3795 deletions

File tree

.plugin-data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "1.1.1",
2+
"version": "1.1.2",
33
"slug": "blockparty-iframe"
44
}

.wordpress-org/blueprints/blueprint.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"pluginData": {
1212
"resource": "git:directory",
1313
"url": "https://github.com/BeAPI/blockparty-iframe",
14-
"ref": "1.1.1",
14+
"ref": "1.1.2",
1515
"refType": "tag"
1616
},
1717
"options": {
@@ -24,6 +24,10 @@
2424
"username": "admin",
2525
"password": "password"
2626
},
27+
{
28+
"step": "runPHP",
29+
"code": "<?php\nrequire_once 'wordpress/wp-load.php';\n$dir = WP_CONTENT_DIR . '/mu-plugins';\nif ( ! is_dir( $dir ) ) {\n\twp_mkdir_p( $dir );\n}\n$file = $dir . '/blockparty-iframe-playground-kses.php';\n$mu_plugin = <<<'BLOCKPARTY_IFRAME_MU'\n<?php\nadd_filter( 'wp_kses_allowed_html', function( $tags, $context ) {\n\tif ( 'post' !== $context ) {\n\t\treturn $tags;\n\t}\n\t$tags['iframe'] = array(\n\t\t'src' => true,\n\t\t'class' => true,\n\t\t'style' => true,\n\t\t'id' => true,\n\t\t'loading' => true,\n\t\t'title' => true,\n\t);\n\treturn $tags;\n}, 10, 2 );\nBLOCKPARTY_IFRAME_MU;\nfile_put_contents( $file, $mu_plugin . \"\\n\" );\necho file_exists( $file ) ? 'mu-plugin installed' : 'mu-plugin failed';\n?>"
30+
},
2731
{
2832
"step": "runPHP",
2933
"code": "<?php require_once 'wordpress/wp-load.php'; $page_content = '<!-- wp:blockparty/iframe {\"title\":\"Johannes Gutenberg — Wikipédia\",\"url\":\"https://en.wikipedia.org/wiki/Johannes_Gutenberg\",\"align\":\"wide\"} -->\n<div class=\"wp-block-blockparty-iframe alignwide\"><iframe title=\"Johannes Gutenberg — Wikipédia\" src=\"https://en.wikipedia.org/wiki/Johannes_Gutenberg\" loading=\"eager\"></iframe></div>\n<!-- /wp:blockparty/iframe -->'; $page_id = wp_insert_post( array( 'post_title' => 'Blockparty Iframe', 'post_name' => 'blockparty-iframe-demo', 'post_content' => $page_content, 'post_status' => 'publish', 'post_type' => 'page' ) ); echo 'Page created with ID: ' . $page_id; ?>"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ All notable changes to this project will be documented in this file.
77
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88
and this project adheres to [Semantic Versioning](https://semver.org/).
99

10+
## [1.1.2] - 2026-04-21
11+
12+
### Fixed
13+
14+
- **WordPress.org Playground blueprint**: Generate the demo mu-plugin via a nowdoc so the `wp_kses_allowed_html` iframe allowlist is written as syntactically valid PHP (the previous line-by-string approach could produce a broken file and fatal the Playground). The blueprint `pluginData.ref` now targets tag `1.1.2`.
15+
16+
### Removed
17+
18+
- **Psalm static analysis**: Removed `vimeo/psalm`, `humanmade/psalm-plugin-wordpress`, and `psalm.xml.dist`; dropped the `psalm` Composer script and the Grumphp Psalm task so the dev toolchain relies on PHPCS, PHP parallel lint, and related tooling only (leaner `composer.lock` / install).
19+
1020
## [1.1.1] - 2026-04-20
1121

1222
### Fixed
@@ -131,6 +141,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
131141

132142
---
133143

144+
[1.1.2]: https://github.com/BeAPI/blockparty-iframe/releases/tag/1.1.2
134145
[1.1.1]: https://github.com/BeAPI/blockparty-iframe/releases/tag/1.1.1
135146
[1.1.0]: https://github.com/BeAPI/blockparty-iframe/releases/tag/1.1.0
136147
[1.0.2]: https://github.com/BeAPI/blockparty-iframe/releases/tag/1.0.2

blockparty-iframe.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Blockparty Iframe
44
* Description: Add a block to display an embedded frame in the WordPress editor.
5-
* Version: 1.1.1
5+
* Version: 1.1.2
66
* Requires at least: 6.7
77
* Requires PHP: 8.1
88
* Author: Be API Technical team
@@ -19,7 +19,7 @@
1919
exit; // Exit if accessed directly.
2020
}
2121

22-
define( 'BLOCKPARTY_IFRAME_VERSION', '1.1.1' );
22+
define( 'BLOCKPARTY_IFRAME_VERSION', '1.1.2' );
2323
define( 'BLOCKPARTY_IFRAME_URL', plugin_dir_url( __FILE__ ) );
2424
define( 'BLOCKPARTY_IFRAME_DIR', plugin_dir_path( __FILE__ ) );
2525
define( 'BLOCKPARTY_IFRAME_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );

composer.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
"name": "beapi/blockparty-iframe",
33
"description": "Add a block to display an embedded frame in the WordPress editor.",
44
"type": "wordpress-plugin",
5-
"keywords": ["wordpress", "plugin", "block", "iframe", "editor"],
5+
"keywords": [
6+
"wordpress",
7+
"plugin",
8+
"block",
9+
"iframe",
10+
"editor"
11+
],
612
"license": "GPL-2.0-or-later",
713
"authors": [
814
{
915
"name": "BeAPI",
1016
"email": "technical@beapi.fr",
11-
"homepage":"https://beapi.fr",
12-
"role":"Company"
17+
"homepage": "https://beapi.fr",
18+
"role": "Company"
1319
}
1420
],
1521
"config": {
@@ -32,29 +38,24 @@
3238
},
3339
"require-dev": {
3440
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
35-
"humanmade/psalm-plugin-wordpress": "^2.0",
3641
"php-parallel-lint/php-parallel-lint": "^1.3",
3742
"phpcompatibility/php-compatibility": "^9.3",
3843
"phpro/grumphp-shim": "^1.5",
3944
"roave/security-advisories": "dev-latest",
4045
"roots/wordpress-no-content": "^6.0",
4146
"squizlabs/php_codesniffer": "^3.7",
42-
"vimeo/psalm": "~4.23.0",
4347
"wp-cli/wp-cli": "^2.6",
4448
"wp-coding-standards/wpcs": "^3.0"
4549
},
46-
"autoload-dev": {
47-
},
50+
"autoload-dev": {},
4851
"scripts": {
4952
"cs": "./vendor/bin/phpcs",
5053
"cb": "./vendor/bin/phpcbf",
51-
"psalm": "./vendor/bin/psalm",
5254
"phpunit": "phpunit"
5355
},
5456
"scripts-descriptions": {
5557
"cs": "Run PHP CodeSniffer on codebase using custom ruleset.",
5658
"cb": "Run PHP Code Beautifier and Fixer on codebase using custom ruleset.",
57-
"psalm": "Run psalm on codebase using custom ruleset.",
5859
"phpunit": "Run PHP unit tests."
5960
}
6061
}

0 commit comments

Comments
 (0)