File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " threadi/eml" ,
3
+ "version" : " 1.2.3" ,
3
4
"scripts" : {
4
5
"post-install-cmd" : [
5
6
" \" vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcsstandards/phpcsutils,vendor/phpcsstandards/phpcsextra"
19
20
},
20
21
"require" : {
21
22
"php" : " ^8.0" ,
22
- "threadi/wp-easy-dialog" : " dev-master "
23
+ "threadi/wp-easy-dialog" : " ^1.0.7 "
23
24
}
24
25
}
Original file line number Diff line number Diff line change @@ -1296,7 +1296,13 @@ function eml_dialog_embed(): void {
1296
1296
1297
1297
// embed the dialog-components JS-script.
1298
1298
$ 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 ;
1300
1306
wp_enqueue_script (
1301
1307
'wp-easy-dialog ' ,
1302
1308
$ url . 'build/index.js ' ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Tested up to: 6.6
6
6
Requires PHP: 8.0
7
7
License: GPL-2.0-or-later
8
8
License URI: https://www.gnu.org/licenses/gpl-2.0.html
9
- Stable tag: 1.2.2
9
+ Stable tag: 1.2.3
10
10
11
11
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.
12
12
@@ -18,6 +18,8 @@ The plugin checks for you automatically on a regular basis whether the external
18
18
19
19
In the settings you can define whether image files are hosted locally in your hosting or externally.
20
20
21
+ The development repository is on [GitHub](https://github.com/threadi/external-files-in-media-library/).
22
+
21
23
---
22
24
23
25
== Installation ==
@@ -93,3 +95,6 @@ No, only public files can be used.
93
95
* Updated compatibility-flag for WordPress 6.6
94
96
* Updated dependencies
95
97
* Fixed potential error on attachment pages
98
+
99
+ = 1.2.3 =
100
+ * Updated dependencies
You can’t perform that action at this time.
0 commit comments