We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3ea012 commit c287362Copy full SHA for c287362
2 files changed
inc/Services/Assets.php
@@ -59,7 +59,7 @@ public function register_assets(): void {
59
$theme = wp_get_theme();
60
61
// JavaScript
62
- $file = $this->get_min_file( 'js' );
+ $file = $this->get_min_file( 'js' ) ?: 'app.js';
63
$asset_data = $this->get_asset_data( $file );
64
$this->assets_tools->register_script(
65
'scripts',
inc/Services/Editor.php
@@ -77,7 +77,7 @@ private function style(): void {
77
* Editor script
78
*/
79
public function admin_editor_script(): void {
80
- $file = $this->assets->get_min_file( 'editor.js' );
+ $file = $this->assets->get_min_file( 'editor.js' ) ?: 'editor.js';
81
$filepath = 'dist/' . $file;
82
83
if ( ! file_exists( get_theme_file_path( $filepath ) ) ) {
0 commit comments