Skip to content

Commit

Permalink
Merge pull request #34 from threadi/feature/updateDependencies170824
Browse files Browse the repository at this point in the history
update dependencies
  • Loading branch information
threadi authored Aug 17, 2024
2 parents eb0ee8d + 426a256 commit f1e4e5c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -19,6 +20,6 @@
},
"require": {
"php": "^8.0",
"threadi/wp-easy-dialog": "dev-master"
"threadi/wp-easy-dialog": "^1.0.7"
}
}
8 changes: 7 additions & 1 deletion inc/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 ==
Expand Down Expand Up @@ -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

0 comments on commit f1e4e5c

Please sign in to comment.