From 426a256cb48266bf20c6917b70aaf586ac37c39a Mon Sep 17 00:00:00 2001 From: Thomas Zwirner Date: Sat, 17 Aug 2024 12:51:20 +0200 Subject: [PATCH] update dependencies --- composer.json | 3 ++- inc/admin.php | 8 +++++++- readme.txt | 7 ++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index efefc00..a5921c5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,6 @@ { "name": "threadi/eml", + "version": "1.2.3", "scripts": { "post-install-cmd": [ "\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsutils,vendor/phpcsstandards/phpcsextra" @@ -19,6 +20,6 @@ }, "require": { "php": "^8.0", - "threadi/wp-easy-dialog": "dev-master" + "threadi/wp-easy-dialog": "^1.0.7" } } diff --git a/inc/admin.php b/inc/admin.php index dfd0df7..c13ff76 100644 --- a/inc/admin.php +++ b/inc/admin.php @@ -1296,7 +1296,13 @@ function eml_dialog_embed(): void { // embed the dialog-components JS-script. $script_asset_path = $path . 'build/index.asset.php'; - $script_asset = require $script_asset_path; + + // bail if file does not exist. + if ( ! file_exists( $script_asset_path ) ) { + return; + } + + $script_asset = require $script_asset_path; wp_enqueue_script( 'wp-easy-dialog', $url . 'build/index.js', diff --git a/readme.txt b/readme.txt index 8ada61c..1954dc4 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Tested up to: 6.6 Requires PHP: 8.0 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html -Stable tag: 1.2.2 +Stable tag: 1.2.3 Add external files to your media library to link or embed them in your website. They will be integrated as if they were locally available. @@ -18,6 +18,8 @@ The plugin checks for you automatically on a regular basis whether the external In the settings you can define whether image files are hosted locally in your hosting or externally. +The development repository is on [GitHub](https://github.com/threadi/external-files-in-media-library/). + --- == Installation == @@ -93,3 +95,6 @@ No, only public files can be used. * Updated compatibility-flag for WordPress 6.6 * Updated dependencies * Fixed potential error on attachment pages + += 1.2.3 = +* Updated dependencies