diff --git a/.distignore b/.distignore index 341332d..f84aa77 100644 --- a/.distignore +++ b/.distignore @@ -1,25 +1,32 @@ +# Directories /.git /.github -/.wordpress-org /node_modules /src +# Configuration files .distignore .editorconfig .gitattributes .gitignore .plugin-data .wp-env.json -CHANGELOG.md +grumphp.yml +phpcs.xml.dist +psalm.xml.dist + +# Dependency management composer.json composer.lock -grumphp.yml -LICENSE.md package.json package-lock.json -phpcs.xml.dist -phpunit.xml.dist -psalm.xml.dist + +# Documentation (GitHub) +CHANGELOG.md README.md -webpack.config.js -yarn.lock + +# Development files +*.log +*.map +.DS_Store +Thumbs.db diff --git a/.gitattributes b/.gitattributes index 790a99d..d7cd88a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,11 +1,26 @@ +# Directories /.git export-ignore /.github export-ignore +/node_modules export-ignore +/src export-ignore + +# Configuration files /.distignore export-ignore +/.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore /.plugin-data export-ignore -/CHANGELOG.md export-ignore +/.wp-env.json export-ignore /grumphp.yml export-ignore /phpcs.xml.dist export-ignore -/psalm.xml export-ignore +/psalm.xml.dist export-ignore + +# Dependency management +/composer.json export-ignore +/composer.lock export-ignore +/package.json export-ignore +/package-lock.json export-ignore + +# Documentation (GitHub) +/CHANGELOG.md export-ignore /README.md export-ignore diff --git a/.plugin-data b/.plugin-data index e007d19..147e582 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.0", + "version": "1.0.1", "slug": "blockparty-iframe" } diff --git a/blockparty-iframe.php b/blockparty-iframe.php index 3dc6cd7..29ce564 100644 --- a/blockparty-iframe.php +++ b/blockparty-iframe.php @@ -2,9 +2,9 @@ /** * Plugin Name: Blockparty Iframe * Description: Add a block to display an embedded frame in the WordPress editor. - * Version: 1.0.0 + * Version: 1.0.1 * Requires at least: 6.7 - * Requires PHP: 7.4 + * Requires PHP: 8.1 * Author: Be API Technical team * License: GPL-2.0-or-later * License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -19,11 +19,16 @@ exit; // Exit if accessed directly. } -define( 'BLOCKPARTY_IFRAME_VERSION', '1.0.0' ); +define( 'BLOCKPARTY_IFRAME_VERSION', '1.0.1' ); define( 'BLOCKPARTY_IFRAME_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_IFRAME_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLOCKPARTY_IFRAME_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); +// Require vendor +if ( file_exists( BLOCKPARTY_IFRAME_DIR . '/vendor/autoload.php' ) ) { + require BLOCKPARTY_IFRAME_DIR . '/vendor/autoload.php'; +} + /** * Registers the block using a `blocks-manifest.php` file, which improves the performance of block type registration. * Behind the scenes, it also registers all assets so they can be enqueued diff --git a/package.json b/package.json index 8a8e805..ed0db55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-iframe", - "version": "1.0.0", + "version": "1.0.1", "description": "Add a block to display an embedded frame in the WordPress editor.", "author": "Be API Technical team", "license": "GPL-2.0-or-later", diff --git a/src/blockparty-iframe/block.json b/src/blockparty-iframe/block.json index 55677e2..26fb443 100644 --- a/src/blockparty-iframe/block.json +++ b/src/blockparty-iframe/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/iframe", - "version": "1.0.0", + "version": "1.0.1", "title": "Iframe", "category": "widgets", "description": "Display an embedded frame.",