Skip to content

Commit 426a256

Browse files
committed
update dependencies
1 parent a7902d4 commit 426a256

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "threadi/eml",
3+
"version": "1.2.3",
34
"scripts": {
45
"post-install-cmd": [
56
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsutils,vendor/phpcsstandards/phpcsextra"
@@ -19,6 +20,6 @@
1920
},
2021
"require": {
2122
"php": "^8.0",
22-
"threadi/wp-easy-dialog": "dev-master"
23+
"threadi/wp-easy-dialog": "^1.0.7"
2324
}
2425
}

inc/admin.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,13 @@ function eml_dialog_embed(): void {
12961296

12971297
// embed the dialog-components JS-script.
12981298
$script_asset_path = $path . 'build/index.asset.php';
1299-
$script_asset = require $script_asset_path;
1299+
1300+
// bail if file does not exist.
1301+
if ( ! file_exists( $script_asset_path ) ) {
1302+
return;
1303+
}
1304+
1305+
$script_asset = require $script_asset_path;
13001306
wp_enqueue_script(
13011307
'wp-easy-dialog',
13021308
$url . 'build/index.js',

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tested up to: 6.6
66
Requires PHP: 8.0
77
License: GPL-2.0-or-later
88
License URI: https://www.gnu.org/licenses/gpl-2.0.html
9-
Stable tag: 1.2.2
9+
Stable tag: 1.2.3
1010

1111
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.
1212

@@ -18,6 +18,8 @@ The plugin checks for you automatically on a regular basis whether the external
1818

1919
In the settings you can define whether image files are hosted locally in your hosting or externally.
2020

21+
The development repository is on [GitHub](https://github.com/threadi/external-files-in-media-library/).
22+
2123
---
2224

2325
== Installation ==
@@ -93,3 +95,6 @@ No, only public files can be used.
9395
* Updated compatibility-flag for WordPress 6.6
9496
* Updated dependencies
9597
* Fixed potential error on attachment pages
98+
99+
= 1.2.3 =
100+
* Updated dependencies

0 commit comments

Comments
 (0)